I will say that quality is the biggest factor though. Apple sabotaged its Macbook Pro with that stupid touchbar and terrible keyboard. My (female) friend who's only ever owned iPhones is going to switch to Samsung next time unless Apple makes a small iPhone because she said the next design is really ugly.
Apple deserves their current troubles because they destroyed their formerly top of the line products. Closed systems might not matter to the average consumer, but it's one of the main reasons I've never owned an iPhone and refused to buy a Mac until I had to for work. Perhaps I'm in an even smaller minority there, but it's certainly false to say that all customers don't care about that.