The methods are different but the strategy is the same. They have used this strategy with Windows Subsystem for Linux (WSL), VSCode + extensions, Winget, Microsoft Teams, GitHub, and now OpenAI.
Microsoft can afford to maintain all these offerings for free whilst competitors suffocate and struggle to compete with their paid offerings.
You can't compete with free, especially when there is a company who can afford to run and host the best tools for free for a long time.