5 years isn't all that long in the world of computers (and Apple is trying really really hard to market iPads as computers).
Any proper computer will be upgradable for way longer than 5 years when running Windows or Linux. iPad won't be because you're not allowed to install your own OS.