I say that to say this isn't exclusive to Apple and I think your sentiment is mostly good marketing by them. No Apple hate here, enjoying my company-supplied MBP too.
There was a class action because they deliberately slowed down iPhones claiming it was for battery health (anecdotally, when I had iPhones I noticed they were always a a pain to use for a month before and after the new releases, but it could be in my head).
They solder in RAM so it's difficult or impossible to upgrade.
I have an M1 MBP and the battery life is half of what it used to be. However I also have Applecare so of course the battery health is stuck at 84% (fairly sure, but not totally sure, that it was at 82% a few months ago) because they won't replace the battery unless it's under 80%. A lot of people report the battery health getting stuck just above 80% if they have Applecare.
Their hardware is great, I agree with you, but let's not pretend they don't play that game.
Not to turn this into a Web fight or anything, but come on... Even my t420S from 2011 could be upgraded with ssd and more ram and is still used :). My daily driver is t480, 8 years old, my wive's x1 carbon 7 years old, with no intention of retiring either anytime soon.
The notion of Apple, of all companies, "setting standard for long span devices", is laughable to me as I look at my ipads no longer running old software I paid for and getting slower with every forced update.
Apple makes sexy devices that match many people's requirements. Good on them! But this continued notion they invented everything is grating.
</old grouchy man's rant finished> :-)
The iPhone 8 finally died. I think it was almost 10 years old.