They came up with the idea for what the product should be, designed the product and a. purchased off the shelf components where they could and b. contracted with other companies to manufacture custom components for them, and designed all the software that makes the iPhone an iPhone and not just a better looking Zune.