Maintaining XCode, running iCloud app-facing services, building/maintaining SDKs, etc...
Apple has to pay for these somehow. They can either get the money by charging more for each iPhone or they can get the money from the real end-users of these products: Developers.