Companies host their private code in private repos.
I’m not saying it’s the best thing for GitHub to do, but...
Let’s say 15% of Android top 1000 apps are sitting in private repos on GitHub. With their build tools GitHub make it possible to automatically push builds to this imaginary store, they offer devs 50% discount on whatever cut google take if on the play store.