Looks like one reason is Codecrafters is a learning site which uses Github to store users code, instead of hosting it themselves. This post is about one project which is at Codecrafters
By default, you're not required to publish your code to GitHub (although you can sync with a couple clicks). By you get a repo for you to work out of, which is hosted on CodeCrafters' git servers.