I think owning GitHub is a prestige play, not necessarily thought of as a profit center.
Now however, it's competing for resources directly with the corporations core strategic plans.
GitHub having issues is embarrassing, but the shareholders don't really care.
I've always wondered about that. I've suspected the same as you, it's mostly a brand / "ecosystem" thing.