means that
a strategic retreat can preserve one's resources or safety and make it possible to face a challenge again under better conditions.
Imagine a case where sometimes is rational to run away from a fight, in order to survive; in that case, you might have the chance to fight again later, under better…; then “He who fights and runs away may live to fight another day” fits well.