How I was able to play Apple Music in the car with disabled cellular data?
You were likely able to play music that had been cached locally on your device. Apple Music caches songs as you play them so that, if you play them again, they play locally from your device.

In the future, if you're inclined to test out this theory, you can clear your Apple Music cache prior to a trip and then observe whether you're able to play any music.