These exist, and you can self host.
However, a lot of people think Github is the only option, and it benefits from network effects.
Non-profit alternatives suffer from a lack of marketing and deal making. True of most things these days.
> Non-profit alternatives suffer from a lack of marketing and deal making
Sad but true. I’m trying to promote these whenever I can.
They also don’t have the resources to ensure perf and reliability if they get really popular, or to invest in UI and other goodness.
Still great for some applications and developers, but not all.