So why haven't all websites cut off these countries?
Why haven't the ISPs cut off these countries?
Github has acted because github is under the control of a giant corporation, Microsoft or otherwise.
So there's a line that runs precisely from Microsoft acquisition to cutting off countries from the world's largest open source repository. It's a direct outcome of the Microsoft acquisition.