Assuming GitHub was actually losing money and couldn't fix that problem quickly enough it's fair to assume they had to sell, and it's reasonable to believe there aren't that many companies who could have bought them if you think an understanding of the domain is important, then you're really limited to Facebook (user surveillance, adverts), Apple (bad at software, not developer friendly), Google (user surveillance, a…
How about Atlassian?
They have Bitbucket and I think is pretty safe to say that they don't care about people hosting their open source stuff.
Of course you can use Bitbucket for free but where the big bucks are for Atlassian is the enterprise market. I don't have market data but I don't think there are many big corps using GitHub as opposite to Bitbucket together with other Atlassian products.