I bought a 2014 Mac Mini for $60 a couple months ago. It still runs just fine, and literally yesterday it got a new security update. That's ten years of support.
People can make fun of Apple for myriad things, but not supporting their devices is not one of them.