Locomotive in the rear is to provide push power over the mountain passes. It is alo known as Helper that only travel at the mountain area. It is to prevent coupler from breaking apart when it going uphill and cause a run-away train.
I notice all the intermodal trains in the Riverside area have a pusher locomotive in the rear on flat land too. Maybe to relief the stress of coupler on a long train.