What is a diesel electric loco?

A diesel-electric loco - is basically a train engine. The diesel engine turns an alternator, which generates electricity to power the motors which drive the wheels.... WHY was this posted in the Cakes, Chips and Sandwiches sections !