I imagine the argument is that a less locked-down device would be able to receive community support 10 years later.
I suspect, though, that that’s optimizing for perfection in rare cases rather than doing better overall. The number of iPads that survive to 10 years is presumably puny. The batteries wear out, they get dropped, etc. I would guess that the number of 2-3 year old devices that get replaced simply because the OS updates stop or the UX gets slow is much greater. And, while community OS and firmware projects do exist, they haven’t made it into the mainstream in any meaningful way, so I doubt they make a dent in overall consumer behavior. In which case, perhaps Apple’s way of doing things is a net win (or at least the lesser of some number of evils) compared to others’ in the aggregate.
Hard to say without any hard numbers, though.
(Disclaimer: A couple months back I opted to replace the battery on my 2013 MacBook, which is still going strong, instead of buying a new Framework laptop. That may indicate some bias.)