To be fair...
...it makes sense. It is pretty impossible to make a waterproof device that will still be waterproof after a user-replaceable battery has been replaced. This whole thing will go away as battery technology improves.
What's more relevant is forcing manufacturers to provide updates for 15 years. We need devices that continue to be relevant for longer than that. There's absolutely no reason, other than a commercial one, to sell devices that physically work after 10 years but can't actually do anything, because of software updates. Don't get me wrong, I love tech and I replace by phone every 2-4 years anyway, but should I want to, they should still be working after even 20 years.
My old iPhone XS Max, which my mother uses, still gets security patches, but no feature updates. However, it's SO slow. It scrolls jerkily, everything takes a long time. There's no reason to suspect that it isn't at worst ideliberate, and at best, deliberate through inaction and/or incompetence.
Yes, it'll push up phone prices and bring down profits, but this seemingly relentless push for new devices is happening at our expense, of course. These massive companies are making an extreme amount of money predicated on selling us new kit all the time, when it's such a waste. Old devices might not be able to take feature updates, but they can still run old versions of the operating systems, can't they? All they need is security patches.