Windows works on 10 year old hardware because hardware manufactures don't get to modify the windows kernel. Instead, they have to push out drivers which work with the windows kernel.
It's really that simple.
There are several solutions here.
Google could make their own kernel which is closer to the microsoft kernel methodology (Fuchsia is basically just that)
Google could ban devices that with custom kernels from the play store (They MIGHT be able to do that now, then again, Android could be forked).
Google could create a private kernel repo and have manufactures submit to it. They could have their own kernel build profiles. (if getting things into mainline linux are deemed too difficult).
Compare the best PC from 1990 with the best one from 2000. That change makes 2010-2020 look like it was standing still.
Phone evolution for maybe 5-10 years after 2007 was more like the nineties, though it's definitely starting to slow now.
And Windows 2000, from 1999, for instance, only supported ~4 year old hardware. Windows 10 has it much easier!
The OP was claiming that there’s barely been any change in performance in the 2010s, which is just not true.
The biggest improvement, from a most people perspective, in the last 5 years is power usage. They run cooler, and batteries last longer.
The laptop was bought in 2011. It was a fairly cheap one then, and has a dual-core i3 with hyperthreading, and it came with an SSD. I added another some RAM I had laying around so now it has 8GB.
After getting a fresh copy of Win10 on it, it's surprisingly usable. Webpages loads just fine, YouTube is accelerated so is smooth. I could totally use that for my daily laptop had it not been for the rather lackluster 1366x768 screen.
This was my work laptop in 2010 with 8GB of RAM and a 2.66Ghz Core Duo. They let me keep it after the company folded. Until late last year, it was my Plex server and I used it occasionally since it sat right by my work computer.
https://www.cnet.com/reviews/dell-latitude-e6500-review/
The only time that it felt slow compared to a modern computer was disk access. I could have upgraded it with an SSD if I wanted to.
I use the 5s as a Spotify player and when I wiped it and set it up for the task, I was pleasantly surprised at how snappy it still felt and how everything I tried with it continued to work.
The hardware doesn’t have to be incredibly fast to support most of the functions supported - it’s only a small subset that really benefit from extra CPU speed and hardware acceleration.
So of course you can upgrade to windows 10.
Phone hardware has. Very much so.