This system requires both building more infrastructure to leverage the granularity of the cars, more infrastructure to keep a massive fleet of batteries charged, and more maintenance as each freight car now has a drive system.
If this already existed someone would pitch leveraging the economies of scale where you'd build a huge car that pulls all the other ones and you only need to keep 1 battery charged... which is what we have right now...