yeah, it's kinda weird that they "promote" open source using closed source SW. at least they could have issues. I think to make the github code open source would have been something they should have done years ago. now gitlab has rewritten almost the whole functionality from scratch.
if you look at what happens with gitlab, just imagine how much it would advance github itself it they would have a repo for which people could open PRs
If that were to happen, why would anyone buy Github enterprise or even pay for a pro account? Their business model relies on closed source for their proprietary code.
They could still sell support. The "open source, closed addons, paying support" business model can work great (Red Hat, VMWare, certain Oracle products...).