Apple is a hardware company, their software and web services are to complement the hardware, not their main revenue stream.
Seeing as they already did (portable) computers, even has done handhelds in the past (newton), they did MP3 players, have several things related to wireless technology (AirTunes, Apple TV), their version of a cell phone was a natural evolution of their product offerings.