When you buy an iPhone, built into the price are all the costs of designing, manufacturing, shipping and retailing that phone to you, along with a profit for the shareholders of Apple. Apple sets the iPhone price as high as possible, consistent with costs, profit expectations and the goal of selling as many as they can make.