They bought YouTube for a billion dollar - which was back then a crazy number. I still remember all that people arguing (including me) that Google would never make so much money back from YouTube. YouTube even had the reputation for being a huge loss for Google for multiple years.
The YouTube deal was a boardroom backscratch to the Sand Hill Road VCs. YouTube was hemorrhaging money on bandwidth with zero possibility of ever being profitable.