There's a fault with the locomotive and it needs to come off the train for repairs (with a replacement doing forward) If a traction change is needed (e.g an electrically-hauled freight is going to continue on non-electrified trackage, so the electric loco is removed & replaced by a diesel)