There's no evidence that YouTube is profitable[1]. In fact, there's no evidence any of this is profitable.
Android, Gmail, and Maps make money from ads, not from charging users directly. That makes them the same business as search.
Hardware businesses like Home and Chromecast usually aren't profitable, and Google (like Amazon) is likely using them to keep people in their ecosystem.
That leaves Drive, which might have some good margins, but they give it away for free to many users...
1. https://www.nytimes.com/2019/07/24/technology/youtube-financ...