From: 
https://wiki.openstreetmap.org/wiki/Key:highway

Note that highway=* distinguishes roads by function and importance rather by their physical characteristic and legal classification. Usually these things are highly correlated, but OSM is not obligated to copy official road classifications. 