I mean yes, Microsoft and slopcode probably plays a role, but it only got really bad once the LLM mass scraping started, for which I assume Github is also a major target.
And running your own public git forge is a real PITA these days for similar reasons.