Cameras don't age like software or phones, this is why I like them.
A 10 year old DSLR like the Nikon D7100 (I have one) is still a very modern camera and it'll be good for a few decades to come.
(Sadly this is why good companies like Nikon struggle financially, since there is no forceful upgrade treadmill unlike for phone companies. But as a consumer I absolutely love being able to buy something solid that'll work for decades.)