Why shouldn't Apple be allowed to do that? They're not a monopolist adjudicated to have been using their market power to cause harm to others.
Context is important.