Which is why projects like Nura are so important, which works to bring mainline kernels to phones, both modern and outdated, so that they could (theoretically) be supported until the hardware itself dies.
You should be able to use a 20 year old phone with fully up to date software just like how you're able to use a 20 year old laptop with modern software.