I don't think they spend any real time optimizing for old hardware, for example APFS is just a turd on HDD systems and yet they forced everyone on it and worse yet kept selling HDD iMacs on the low end (which really wasn't that low).
Meanwhile MS announces in advance what the support window will be. With Windows 10 there was barely any difference in requirements from Windows 8 so pretty much everything that wasn't a bottom tier netbook or tablet from 2010 still works fine and is supported until 2025. Meanwhile the 2013 Mac Pro which was an expensive beast and sold until late 2019 won't even get some security updates in 2025.
Linux and the BSDs also announce ahead of time the support period and there's a plethora of options for aging hardware.