A Semantic Account of Metric Preservation