Microsoft is into opensource because overnight their server business dissipated when dockerisation came along and destroyed their server market. They had no choice but to get on the band wagon, like the did with the BSD TCPIP stack in the day.

Their strategy was, is, and will forever be embrace, extend and extinguish. Do not mistake Windows Subsystem for Linux as been our friends. They are for running Linux binary executable natively on Windows, and not the other way around. 

This is one piece of software designed to counteract Corporate Linux asking for Linux Laptops.

Selling an Operating system is very very profitable and is required for growth.
Locked in to the Desktop.
Locked in to Office.
Locked in to Teams.

https://techbehemoths.com/blog/how-microsoft-makes-billions
"According to Microsoft data, Windows revenue increased $1.9 billion or 9%, driven by growth in Windows Commercial and Windows OEM. Windows Commercial products and cloud services revenue increased 18%, driven by increased demand for Microsoft 365. Windows OEM revenue increased 9%, ahead of PC market growth. "