The browser, enabled by javascript, has become a platform in and of itself. This pushed the OS down a conceptual layer as well. Google is embracing this model because they live on the web. Apple is fighting this model, because they live in the hardware and OS market.
Apple sees the internet as a ubiquitous transport. They're building an ecosystem of "things", just like Google, only Apple's "things" are iOS devices, where Google's "things" are websites.
Android is Google's hedge against Apple's platform. It exists primarily as a countermeasure. If Google believed in Apple's view of the internet -- where devices are king -- they'd have much stronger ownership of the entire Android platform. In short, they'd go vertical as well. They've made some small plays in that direction (Nexus phones), but they're not seriously committed to it.
The great part is, we get to watch this battle unfold. I don't particularly care which one wins. I think both perspectives have merit, because I don't buy in to the many "principle" arguments that push matters one way or the other. Never forget, there's money to be made on both sides of the table.