So recently I’ve been seeing the trend where Android OEMs such as Google, Samsung, etc. have been extending their software release times up to like five, six, and seven years after device release. Clearly, phone hardware has gotten to the point where it can support software for that long, and computers have been in that stage for a very long time. From what I can tell, the only OEM that does this currently might be Fairphone.
Edit: The battery is the thing that goes the fastest so manufacturers could just offer new batteries and that would solve a lot of the problem.
Good points
Edit: Though there was the point in the early to mid-2010s where hardware was improving so rapidly that it would have been infeasible to not replace it as soon as possible.