Why did Google move into hardware with AI and machine learning

Why did Google move into hardware with AI and machine learning