Capacitors don’t store enough power. They work well in trains where they can be charged continuously with overhead power lines/etc, and a lot of battery EVs have a small capacitor as part of their regen braking system… but if you want to actually store a large amount of power capacitors can’t do it (yet?).