Although models are removed from the back of their unit, very often the casualties will have fallen elsewhere, usually in the front or fighting rank. Removing models from the back of a unit represents warriors behind the front rank 'stepping forward' to fill gaps in the front rank.
However, a model cannot make any form of attack (shooting or combat) during a phase in which it stepped forward. It is too busy clambering over the fallen bodies of its comrades.