One more reason, but I am not sure about it's correctness .At good olden time the doors of the coaches were open out side only. There must be some space for safety of the passengers and article at the platform.
But the gap between coach and platform should be minimum and uniform, but it is not like that which create many loss for life.