When you have multiple engines (MU), those platforms fold down, to provide a stepping surface when traversing from one engine to another.
When not in use, they are supposed to be folded up (as shown in the picture) so someone doesn't walk off the end of the train.