For me personally, it was mostly due to programming on Windows was a painful experience. I was using MinGW compilers, which were quite good but I wanted the latest and greatest GCC. The other options were using MSVC or clang, but I believe clang is just a frontend to MSVC (I’m not sure… please correct me if I’m wrong).
WSL was an option, but I was doing graphics programming at the time. And I needed to upgrade to WSL2 to run GUI applications or something, which required Windows 11. So at some point I got fed up and just thought to myself, why not run the real thing. This is probably one of the few instances where the technical merits of Linux is what actually got me to switch in the first place. I didn’t hear anything about software freedom, privacy, or even care about any of those reasons at all when I did the switch.
As a Windows user for a very long time, using it from my childhood, I wouldn’t have switched no matter how unethical it was to use Windows if Linux was too difficult to use. So I’m glad that ended up not being the case. :)