Github is a massive piece in the developer ecosystem. It drives adoption of other MS products that can integrate with it, and generates a lot of goodwill towards MS.
LinkedIn, eh, that's probably the weakest property. On the other hand, it's massive in the enterprise space - again lots of goodwill, this time from "suits", and maybe some cool metrics about hiring.