It's smart.
This is WHY Microsoft bought Github. Software is eating the world and Github is where most of the eating happens. There are many career paths that require you to live on Twitter or LinkedIn or whatever. If Github pulls off the bigger play here it won't matter what Gitlab or Bitbucket or anyone else ever tries because you will HAVE to be on Github.
This is how a trillion dollar company gets its return on GH.