Those are private businesses and they are permitted to discriminate on the basis of political ideology. If you dont like freedom you could travel to North Korea.
The concept of a common carrier is a part of common law with precedents going all the way back to the Roman Empire.