First of all, this is market share up to the release of the new MBP. It's not surprising that their market share has been slipping given that up to this point they haven't released a significant update to the MBP since 2013.
But getting to the point, the Mac ecosystem is now ingrained into open source development. Believe me I used to use a PC not too long ago and nothing would work because OS software is designed to run on top of a NIX environment. I recently had to go through this exercise with a colleague who was in denial. But over time, it ends up the same: software built to run on Linux servers runs best under an environment that is designed more like Linux. He now owns a MBP.
So Windows is out (for non .NET devs). That leaves us with what, Linux itself as the OS? Anyone who suggests doing this either hasn't done it before or has way too much time on their hands. I use macOS because I don't have time to hunt for drivers, trying to understand an obscure error discussed in a long forum thread or having all my software no longer work just because I updated a package. I've already tried that twice once with Gentoo and then with Ubuntu years later hoping it would be different. I know plenty of others who have as well. Ultimately we have jobs and we need to debug our own software.
Which brings us back to the Mac. I fully expect this release to be their Windows 8 moment, a beta event from which they will recover from given time for hardware to catch up. Not every release can be a stellar event. Give it time.