I understand, but in terms of mass market appeal, most people just want to be able to safely take pics and share them and participate in group chats and browse the web and play some games.
Granted, most people would not be able to discern security updates and software updates or maybe even care about them nowadays, but back when the ecosystems and reputations were being established in early 2010s, Android vendors really dropped the ball. Everyone could see their relatives continuing to use iPhone 4 and iPhone 5 a couple more years and getting visibly updated for a couple more years than competing Androids (even from Google themselves!).
The resell value of iPhones was more as well, and I assume many or most people figured out that the probability of iOS devices outlasting competing Android devices was high.