Network effect. Especially for open source. The thinking is basically that GitHub is where developers find your project so if you don’t use GitHub you won’t find developers.
I think this ignores just how much better GitHub is compared to its competitors — at least from my experience of using bitbucket at work. GitHub rightfully should have more market share.