Not also that some components go the other way entirely: battery cost goes with the physical mass of the battery for obvious reasons, and the iPad has 3x as much battery as the phone.
The real reason the "premium" product is cheaper than the "budget" one is pure price discrimination. The iPhone 5 is "better enough" than its previous incarnations that people are willing to buy it for $600. But there are people who won't buy an iOS product at all at that price, and as Apple can manufacture them more cheaply they sell a differently configured model (carefully tuned to be "worse enough" than the premium models that it won't cannibalize sales!) for a lower price that the market will bear and that will still make them money.
Everyone does this, across all market segments (and not just in tech). There's nothing surprising in that.