Same with locomotives. Most are diesel-electric in that a diesel engine drives a generator, which generates electricity to power an electric motor that actually turns the wheels. Less mechanical wear and tear this way, though it adds some inefficiency as the article says.
Also in locomotives is that no gear box would survicee so much weight.