Not necessarily railway, Alan. Most factories at the time had at least one steam engine (or possibly a town gas engine) to power the machinery via shafts and belts. The man in charge of them was called a driver, even though the engine did not move. Similarly a fitter was an engineer, employed either by the factory owner or by an engineering firm who repaired and serviced several companies factory engines.