> The problem is really that the SoCs aren't maintained for long
Why is this not a problem with laptops?
Because laptops don't use SoCs... A SoC (system on chip) is a whole lot more than just an application processor.
I don't think it's the actual reason. My Librem 5 phone will have lifetime updates just like a laptop, thanks to free drivers. Proprietary software is the reason for the planned obsolescence.
They want it this way because then they can sell more SoCs because users end up upgrading more often, and device manufacturers (besides Fairphone) don't complain because their interests are aligned.
On the Apple side you see devices getting support for much longer as Apple designs and maintains it's SoCs in-house, and at least to a degree value device longevity because that keeps second-hand prices relatively high, and that aligns somewhat with Apples interests.
Not quite 10 years, but we've seen feature updates for just under 7 years with the iPhone 6s (released 2015), and it's still receiving security updates and bug fixes.