There are use cases for battery trains. In remote, mountainous locations where the cost for electrifying a track is very high it is not uncommon to use electric trains with batteries. Here in Germany we have several regions where diesel trains have been replaced by them.