It's a company with shareholders. Also they don't even hide that they sell some information for ads targeting.
iOS isn't locked down for "Apple's profit", it's locked down for the users' security. This isn't really controversial, only really hardcore Google shills who don't know anything about Apple would argue otherwise.