There is a difference. Microsoft doesn't dictate requirements for software made available through github in the way that Google and F-Droid do for packages distributed through their channels.
"From time to time, GitHub receives requests from governments to remove content that has been declared unlawful in their local jurisdiction. Although we may not always agree with those laws, we may need to block content if we receive a complete request from a government official so that our users in that jurisdiction may continue to have access to GitHub to collaborate and build software." https://docs.github.com/en/site-policy/other-site-policies/github-government-takedown-policy
Github is evil
That's pretty much what you'll find with every US organization that abides by the law. But there are many other git alternatives available if you find GitHub's ToS unacceptably restrictive. The main benefit to using GitHub is its 3rd party integrations, and the accompanying functionality.