Because closed source software is worse for everyone. Regardless of any other feature, being closed source makes Apple products a non-starter for a sizeable subset of the population.
"sizeable subset of the population" is a bit of an overstatement. Most people are fine with running Windows or macOS. There's just a vocal minority that wants open source stuff.