In fact i'm not sure why that wouldn't also apply to the trains...
It probably especially makes sense that freight trains running off fossil fuels won't even consume much electricity at all (just enough to operate instruments in the locamotive?), though presumably passenger trains could make use of it.
Maybe there are barriers to electrification of some trains in some areas.
The main barrier to electrification is the high upfront capital cost of the electrification works, set against the longer-term per-train return in lower fuel and locomotive/multiple unit costs. Lines which are not intensively used are difficult to justify electrifying on a financial-returns basis, and that probably includes most of the world's long-distance freight lines.