Both Android vendor and Apple hardware continue to work long after the software has become "outdated". That hardware does not die when the software becomes "obsolete". The vendor may choose to ignore this fact in the interest of sales but it does not mean that authors of applications must ignore it as well.
The third factor besides the vendor and the authors of applications are the operating system authors. With older PC-like hardware, I can run the latest versions of NetBSD. Forever. I update when and if I decide it is time. x86 has its benefits. It is sad that these pocket-sized computers called "smartphones" are so inflexible.
A non-HN reader recently told me that the "tech" industry has turned us all into "beta testers". The entire "updates" concept needs a serious examination. Updates are not a substitute for quality control.