Google was searching desperately for revenue diversity and was acquiring pretty hard at the time. I think the intent with Moto was to acquire a hardware shop and establish a market leading brand to compete directly with Apple. They eventually arrived at Pixel by building it entirely in-house. That Moto got raided for IP and spun out to Lenovo did not meet those (high) expectations. There was no need for anyone to take a loss but I think Google wanted to make a whole lot of money and did not.