Corporations are creations of a democratic society. A corporate charter is granted. As such, it can and does come with strings attached, which can include rules such as "you are not allowed to do this", so long as rules and their conditions are uniformly applied.