In fact, I am not fond of the rather popular trend to brew ported versions of tools from Linux into MacOS to develop applications that will actually be deployed on Linux, so I am glad containerisation mitigates some of this problem and that MacOS makes you do it in a VM running Linux. Linux, being a Unix-like operating system is an internet server operating first, the most dominant one too, and a desktop operating system second. However, Linux distributions for servers and desktops are designed and managed very differently, that's why things like Docker was invented to reduce the issues with these differences.
Windows, on the other hand, is a desktop operating first, office productivity tools server second but they have also attempted to make their operating system dominant for all other servers and devices at the exclusion of everything else. They have not really succeeded at this, and containerisation and the cloud has made it even harder, hence why they have to both try to wedge Docker into Windows as a tick box exercise but also try to make it appear to work natively.