Because a significant part of a product's success is marketing and the psychology underlying it. Apple are masters at marketing, and for many consumers owning Apple products is seen as a way to signal status.
A big part of Apple's brand is that things generally work. I don't need to do a ton of research on the exact pros and cons of other products, I don't have to make sure that a particular brand's model wasn't silently replaced with a cheaper version with the same SKU, that service options do exist (though expensive), and that there's a robust secondary market of Apple devices.