Microsoft doesn't support hardware for any number of years, unless you mean their peripherals or tablets. They make Windows and they decide what the hardware requirements for new versions are going to be.
Windows 11 requires an 8th generation Intel processor and roughly the same for AMD. The 8th generation was released in October 2017, 8 (not 9) years ago. The 7th generation was released in August 2016, BUT, Intel kept manufacturing it until October 2020, 5 (not 9) years ago. And their various resellers kept selling them for several years after that.
Apple doesn't have a set years-of-support either. It typically provides security updates for OSes for seven to ten years, again, from first sale. But Apple doesn't typically sell the same hardware as new for four plus years like Intel does.