Initially, LinkedIn was just another site where you could find jobs. It was simple to use, simple to connect with others; it even had some friendly groups with meaningful discussions.
And then it gained monopoly as the "sole" professional network where you could actually land a job. If you are not on LinkedIn now, you are quite invisible in the job market. Recruiters are concentrated there, even if they have to pay extremely high prices for premium accounts. The site is horrible now: a social network in disguise, toxic and boring influencers, and a lot of noise and bloated interface to explore.
When Google decided to close their code.google.com, GitHub filled a void. It was a simple site powered by git (not by svn or CVS), and most of the major open-source projects migrated there. The interface was simple, and everything was perfect. And then something changed.
GitHub UI started to bloat, all kinds of "features" nobody asked for were implemented, and then the site became a SaaS. Now Microsoft hosts the bulk of open-source projects the world has to offer. GitHub has become a monopoly. If you don't keep your code there, chances are people won't notice your side projects. This bothers me.
Rant over. I hate internet monopolies.
No, I don't see how GitHub it turning into LinkedIn. Everything you said are definitely new things GitHub is doing but none of them are things LinkedIn does. LinkedIn is pretty much just Facebook with career applications built-in.
I am not saying they are competing on the same niche. I am saying both sites started well, and they transformed into something worse, profiting by their monopoly on their specific markets.
It sounds like your issue is with capitalism rather than GitHub. The same logic is applicable to many corporations.