MacOS has a lot of momentum still because for the longest time it was the only way to get a dependable, attractive Unix OS on a desktop/laptop. At the time, most web development tools and server applications were built with Linux & Unix in mind, so it made Macs more attractive to people who worked with that stuff every day.
Today, most of those programs can run on Windows, and Cygwin brings many favorite Unix command line utilities to the platform. WSL is a game changer, but I often found the separation between the Windows & Linux sides to be too painful & just used native Windows functionality.
With Mac hardware issues lately, especially MacBook Pro keyboard problems, I'm seeing web developers switching to Microsoft Surface hardware or a decent laptop running Linux. My work makes me use a MacBook Pro, but I have a souped-up 12" Dell running KDE Neon and a Surface Book for my personal use.
Use what you're comfortable with. Use what excites you. There's so little difference between platforms these days. Enjoy it.