You didn't purchase the software. You purchased a license to use it, which included agreeing to Apple's terms. To use your car analogy, it would be more like renting a car, and the rental company saying you have to stay in your state/province/country/etc., which is perfectly legal and pretty standard. You didn't buy the car, but instead purchased the right to use it.