Companies don't usually buy early stage companies based on their current revenue (which was a drop in the bucket compared to Google's total revenue), but the long term vision and leadership team. Regardless of what eventually happened, at the time Google purchased Nest, Tony was a seasoned executive who had lead a large division and many highly successful products at Apple.