“People” aren’t entitled to tell you what to do with your iPhone after you buy it from Apple, why are “people” entitled to tell Apple what they should do with the money they earned?
Using an iPhone doesn't magically put you above the law, so yes, society in the wider sense does tell you (one of it's members) what you can't do with your iPhone after you bought it. Apple is part of society in more or less the same way, benefiting from what society provides and expected to follow the rules set by society in return.