Because for quite a while. Samsung and other Android devices were usually priced (and still are in most cases) cheaper than an iPhone. Until the last six or seven years, Galaxy S series phones were usually $200 to $300 cheaper than an iPhone. But, being dumb 'Mericans, we conflate cost with quality. Apple has always marketed its products as if you own one our devices you are affluent. Only poor people use Android devices.
The Pixel 8 Pro is $400 cheaper than an iPhone 15 Pro. It is also a much better phone than the iPhone (but not as good as the S24 Ultra). Yet, people will pay the extra $400 just to have the latest iPhone and they don't even own an iPad or Mac.
Why? Because the iPhone is more expensive and therefore its better.