They wanted a browser they have full control over. And you can move much faster when you don’t have to negotiate every change with third parties. Also, Firefox 1.0 and Chrome 1.0 were released within months of each other (though Firefox 0.x had existed for a little while), so Firefox wasn’t that established yet. The main competition at the time was Microsoft Internet Explorer with over 90% market share.
I'm fairly sure pretty much everything at google since the doubleclick acquisition has been a loss-leader in order to give users good 'viewers' for advertisements, there's some nice byproducts along the way of course.