The reason windows is so popular in the home market is because it was in the 90s. businesses bought windows/office, and people brought the floppies home, which led to schools following suit, which lead to a generation thinking windows = computers.
I grew up in the 90s and 00s and schools were all Apple but homes and businesses were all Windows
Yes, on paper Apple was the future -- kids were learning it at school, and thus would recommend it and require it both at home, and then in the office a decade later.
However Microsoft capitalised on their position in the office, and it was far cheaper to buy a fully functioning computer at home with a copy of windows and office from work. Then schools were under pressure to provide what was normal.
Piracy made windows what it is.
It's a bit of a reach to say this, but it's a little bit similar to McDonald's selling toys with meals to entice children.