The problem is that what GitHub does is relatively reproducible (Gitlab, gitea, bitbucket? others do it) but the value GitHub provides is free hosting for so much content.
Anyone can make an image hosting site, making one profitable long term is always the problem. For now, GitHub is winning because of the free side of their toolset.