It's what's known as the "benny hill code". If you order a unit to retreat away from a pursuing enemy too many times, they will suffer a morale penalty and rout. It's built in to the game and also happens in MTW.