Based on my 20+ years working with software delivery, I would say that about 20-30% of developers I've worked with use MacBooks (most Pros but quite a few MBAs). This is especially true if they have a choice of machine or have to buy their own.
I'm not an American but have worked in a number of other Western countries. I think the choice of using a Mac is mostly economic - they are generally a more expensive up-front purchase for businesses, and unless productivity and maintenance benefits can be demonstrated, a lot of businesses will just go with whatever is cheap and has good enough enterprise support. For richer countries the cost of the computer is a small fraction the annual (or even monthly) salary paid to an employee, so the capital cost of a Mac is insignificant over the service life of the machine.
For most of my work (except one) I wasn't offered a Mac as an option, but was allowed to use my own. I would rather spend my own money to get what I want, when I'm spending 40-50 hours a week using it.
Macs are a solid choice with a reliable Unix-like OS that allows your to run shell scripts and a wide variety of command line tools and open-source utilities. Linux is good as well, but Linux on the desktop just isn't as polished as MacOS; there always seem to be a few things to fix with drivers. Windows always seems to involve extra effort and proprietary tools, and Windows scripts or Powershell are far less well documented than *nix equivalents.
That is the thing if you spend $1,000 or $2,000 on new laptop than Linux can be hit and miss.
Also normally runs better with Dell or a Thinkpad laptops than Acer and HP that can really be hit and miss and some motherboard firmware don't even allow boot up into Linux and video drivers normally a problem that can come up.
That is why Linux normally runs better on older hardware. That give them time to roll out fixes on the hardware.
I will never buy new computer over $800 and try to put Linux on it and not know how to fix it and what to do with installing or tolling back kernels when problem comes up or how to fix grub problems that could come up. I know of no Linux expert to talk to on how to fix a problem.
Linux is best for older computers to mess with and learn. I have no experience dropping to a Linux shell or terminal fixing a grub problem or a driver problem because the GUI will not load like some of the Linux old timers that fix it there.
Windows 10 is too buggy after updates that break the computer and when comes to HP and Dell you can get really good drivers and firmware or really bad drivers and firmware.
And in the past 3 or 4 years the Thinkpads quality have been going down hill. Well better than most cheap consumer laptops but not as good as before.
I had a MacBook pro I have used for 7 years and other one for 4 years and not even one yes not one kernel panic or OS freeze where the OS freezes and the only way out of it is a hard shut down. And never had wake up problems that Microsoft can never fix. If your computer is running and goes to sleep well good luck that it will wake up. All 5 windows computer I and family members used had wake up problems a Geateway desktop, HP desktop, other different HP desktop, Lenovo laptop and HP laptop. That will not wake up and some times even boot up into black screen after bad wake up.
Running windows XP, Windows 7, Windows 8.1 and Windows 10. Yes all that and Microsoft have never fixed the sleep or hibernate mode on wake up problem.