Don't forget, they built the platform, but 3rd party apps are what gives it value. Very few people would use an Apple device if they didn't have access to their games or productivity apps.
Moreover, users pay a high premium for their device to access the platform. Why should companies also pay in addition to the annual subscription fee to their developer program?