Trains don't always stop at the same part of the station, and if something serious were to happen inside the train, and it needed to be stopped immediately, then people exiting would need to climb over the railing.
Also, If someone were to get caught in the train door or on the outside, they...