OSM doesn't have elevation data other than what's contained in tags, so regarding your comment on topo lines, this may be an issue with whatever data source is providing them. (Or it could be an alignment issue.)