That's a pretty apple to oranges comparison. iPhone sales is selling physical hardware which obviously comes with a much higher total cost then just software. A much better comparison would be from how much Apple earns from it's app store and developer fees.