The ascendancy of Macs in technical staff ranks commenced simultaneously with the ascendancy of Linux in the datacenter. The Windows tooling to integrate with Linux wasn’t as smooth as Macs. Back in the Dark Ages, about half of the battle IMHO came down to Cygwin and similar weren’t as nice as Terminal.app and Homebrew. And Terminal.app was a better ssh client than PuTTY. Back then if your backend heavy iron lived on Linux, then the overall development experience was simply lower friction on a MacBook Pro.
This has changed these days, of course. macOS’ low-friction edge is narrower now but a lot of what remains like mobile power and video management continues as especially challenging areas for Windows and Linux. VS Code is doing a lot to decouple developers from their hardware.