Even for developers, there are often apps available for MacOS but not Linux that can be very important for specific tasks. Audio/video/photo editing apps, Office, Exchange support, etc.
(I'm sure there are many workarounds for Linux for all of these, but I'm willing to bet they take a lot more to get working than on Mac.)
So Macs are in a sweet spot, of being both outstanding development machines, great application support, and no questions about hardware support.
Also, Mac OS absolutely has package managers for command line software.