Apple had years of experience manufacturing high quality consumer electronics at large scale with the iPod, years of experience managing power consumption on the OS level with Mac OS X, and decades of experience in user experience design and industrial design. At the peak of iPod sales, Apple managed to corner the market on NAND flash memory, to the point where they preordered entire years of production. And the iPhone was the biggest leap in user experience for a portable device ever.