Earlier quoted context omitted.
They can (and do) have room if they're designed from the ground up for it. The engines for diesel electric trains are so large because they need to be sized to drive power for peak energy (usually accelerating and hills). If the energy can be stored, the engines for hybrid locomotives themselves can (and are) smaller. So far you're only seeing hybrid locomotives for trains that stop/start a lot (shunting trains and p…
I would imagine long range freight would be more likely to have long stretches of uphill grade which would mess with the minimum battery size
As I mentioned above, the freight lines are very conservative with new tech and amortize equipment over decades (often to the point where many rail cars are unsafe, especially outdated tank cars), so even if it exists we won’t see it in practice for awhile yet.