The 5S is entering its 6th year and will get iOS 12.
They ADMITTED to deliberately slowing down phones https://www.theguardian.com/technology/2017/dec/29/apple-apo...
Do you think a $1,000+ phone lasting only "4 or 5 years" is really that good?
You don't have to buy a $1,000 iPhone to get 4-5 years out of it. You can buy a cheaper model and get the same longevity.
Or you can buy random_chinese_android phone, pay the same $1,000, and get software updates cut off in two years.
Additionally many people would consider a laptop being directly supported for 5 years pretty good.
Apple's iPhone 5s is getting it's sixth year of support starting with the next release of iOS.
If you splurge on Google's own flagship device with a similar pricing model, you only get two years of OS updates with an additional year of security updates.