This "shiny/for the clueless" Linux-edgelord meme must die. Might as well write "MS" with a dollar sign in 2021.
Go to any programming conference and check the speakers. Over 50% use an Apple laptop. Check major developers people follow, from old Unix hands like Rob Pike, to every major JS cat, to admins, all the way to the creator of Gnome, Gnumeric and Mono, and their preferences, and you'll find they use a Mac laptop with macOS.
(And hardware wise, even Linus Torvalds had an Apple G5 tower as his main driver, and later an Intel Macbook Air he praised as the best machine he had used (though he used Linux on those).
In any case, there are benefits and tradeoffs, but "lol, Mac is teh suck" is inane.
To correct you: no, Docker is not used because "you need to". It's used (also on Linux) for reproducability, isolation, the ability to write code with different dependencies with the whole system at your disposal, and to not mix your driver machine with your development environment.
It is the same use if you run Linux distro X and deployed on another version of it, or on the same version with some tweeks/different libs, or to whole other distro.
And no, it hasn't been a "horrendously slow piece of software on Apple computers, draining battery life like crazy" for ages, and when it was it wasn't because of some macOS limitation, but because the company had done a half-arsed job with the fs layer.
And as far as "needing to use Docker", macOS is not any different than any Linux/FreeBSD distro on that front. If you prefer a local, mix-everything-in, not discliplined approach, unlike what Docker offers, you can install anything you like, from Brew, MacPorts, Fink and so on. You can even have Nix for reproducible builds under that scheme.