That doesn’t really happen as dramatically with gasoline cars. The powertrain and driving experience of a 5 year old gas car isn’t noticeably different than a current one.
If you buy a 5 year old EV you might get one that charges slow, doesn’t have a heat pump, has worse battery chemistry, battery health management, and the list goes on.
Heck, the Leaf is a perfect example because you’re stuck with chademo fast charging charging instead of CCS or NACS. I wouldn’t touch one with a 9 foot pole unless I planned to exclusively charge at home.
Also, don’t take my comment to mean that I think used EVs are a bad choice, many of them can work very well for many years and use cases as long as you are properly informed.