You're confusing developers with generic end users/consumers. Yes, Linux has a low market share among the general population, but it's quite popular with people who write code.
For a lot of things it's important to have a decent terminal emulator, a Unix file system etc. Windows has none of these out of the box and even things like Cygwin are a pain to use.
For a lot of things it's important to have a decent terminal emulator, a Unix file system etc. Windows has none of these out of the box and even things like Cygwin are a pain to use.