Acutally, github is aimed at making money proving awesome code hosting. They host open source stuff because it is a GREAT way to acquire new paid customers. It's the freemium model done really well.
github is still a business and at the end of the day they need to make money.