An all-electric car could have as few as a hundred moving parts. A few motors and connecting rods, some suspension componants, fans and a couple manual controls. You just don't need the thousands of tiny metal bits necessary to keep a gas/diesel engine ticking over. Better yet, those parts you do need can be generic. Electric motors are nothing special, nor are batteries. Since they do not mechanically interact they don't need to be as engine/vehicle specific as parts today. Once EVs become the norm, and the teething problems of EVs are worked out, aftermarket replacements will be everywhere.
Build a car from non-rusting carbon fiber, fill it with easily replaceable generic parts, and you've got a recipe for vehicles lasting decades. THAT's what the car companies really fear.