Many people use browsers for the vast majority of their computing tasks (email, facebook, word processing, etc). Chrome handles this easily without the burden of general OS maintenance.
An iPhone is not billed as a replacement for a laptop (which ChromeOS devices most definitely are). Also, they can run the vast majority of web apps in addition to native iOS apps.
iPhone development shares first party language support (albeit with some different frameworks) with a major desktop OS, and has third party support for a number of other languages.