It was possible to use AC motors (and some railways did, with varying success), but they have less than ideal characteristics for traction purposes. This is because control of speed is difficult without varying the frequency and reliance on voltage to control speed gives a torque at any given speed that is not ideal. This is why DC series motors are the best choice for traction purposes, as they can be controlled by voltage, and have an almost ideal torque vs speed characteristic.