* Trains have worse geometric constraints: you need larger curves, straighter tracks, longer acceleration/deceleration paths, and lesser grade. It's much harder to add track where none exists already.
* For efficiency reasons, trains want to be really long, so trains aren't dispatched until they're long enough to be worth doing so. Consequently, trains tend to be used only when either the source produces craptons of goods (ports, mines) or when there's no issue letting the goods sit around for a long while before a train picks them up (grains).
Last mile will have to be trucks, of course. But those short routes are both more variable and shorter, making them easier targets for electrification. It’s the long haul stuff that’s the low hanging fruit here.
0: https://www.cbo.gov/sites/default/files/114th-congress-2015-... page 2.
https://www.forbes.com/sites/tortoiseinvest/2016/05/13/trans...