These laws are anachronisms back when they didn’t want manufacturers directly selling vehicles to consumers because there was a fear (or maybe, an experience?) with manufacturers selling vehicles without any reasonable ability to get parts, repairs, etc.
Nowadays with nationwide fast shipping and the internet these aren’t really problems… but in the 1950s I could see how there would be some benefits to having a dealership near you.
Has Tesla been selling cars directly to consumers without these problems?
It was more protection for local dealers, to avoid the manufacturer coming in to a market that the dealer had developed and undercutting them.