Why was the iPhone invented?

The iPhone was invented to fill a niche market that resulted from aggressive marketing on the part of the Apple Corporation.