Traditionally consoles are sold at a loss at first and the as components come down in price it evens out. Last gen though xbone and ps4 were essentially sold at cost. Most likely this is sold at cost and then they make money off of games. Apple needs to cover costs of OS and make a profit off of the computer alone and people are willing to pay a premium for Apple.
> Traditionally consoles are sold at a loss at first
That has not been the case since this generation, and even most Nintendo consoles were not sold at loss. the Wii was already profitable at launch, hardware and price-wise. Plus, looking at sites like iSupply is not a good estimation of the real cost of consoles, since manufacturers who order millions of parts do not pay the same price per component as consumers.