YouTube has never been profitable. Google only owns it, because they can afford to, and because they believe it's the future of how people will consume video and TV (and I think they are right).
If you dig into YouTube long and deep enough, you will see it being "too crooked to fail" kind of purchase (most Goog board was against it; one of the owners is a family of a big VC name in Valley, etc).