This has already been the case for git repositories since day one. What makes github unique is the workflow management for teams of developers. I think one of the issues is that people default to the easiest choice of using github or gitlab rather than self hosting their own system [1].
[1] - https://github.com/go-gitea/gitea