However, they had two fundamentally different reasons for doing so. Google wanted a free and open web, where they could develop awesome server-based applications. Apple simply wanted to replace Windows computers with Apple computers. Those two goals are increasingly incompatible.
Now that they've managed to make Microsoft widely irrelevant, these vicious fights look inevitable. I think it's healthy, actually. Hopefully they'll keep each other honest.