Retreating and surrendering are two entirely different things. An army retreats in order to regroup, in a retreat you are still in the conflict and therefore are a viable target. Many battles have been lost over the centuries by commanders who have misread a situation like this.