It’s based on functional classification as stated in the classification guidelines.

https://wiki.openstreetmap.org/wiki/United_States/2021_Highway_Classification_Guidance


https://geo-massdot.opendata.arcgis.com/datasets/functional-classification/explore?location=42.855393%2C-72.046058%2C7.63






