Most of the successful ones have plenty of money anyway and given the nature of the tax system you're better off by donating if you want to support them.
In short, GitHub doesn't at all verify open source licensing, they just allow unlimited free accounts if you accept de facto open source. "Free hosting for nonprofits" requires actually verifying (or requiring the user to assert) nonprofit status, which is a lot more difficult.
Sounds like they have their model cut out perfectly.
There are a large number of potential business applications where this might be an important feature which most commercial users and some non-commercial users would be willing to pay for, and it saves the vendor the trouble of policing licences.
Customer support might well be one of those applications