They publicly said in interviews when Android was initially bought, that they were doing mobile so that people could do Google searches literally everywhere, so they could have ad revenue when people were away from their computers. They were very open about it at the time. "Google search in your pocket".