I have a theory that the soldiers in TP are being mind-controlled by Zelda. When they're in her vicinity they're the bravest things ever, throwing their lives away without a care. However, once they go far enough away she can't exert enough control over them, they revert to their scared, worthless selves. Unfortunately for Zelda her powers aren't very well developed, and so her effective range doesn't even cover the castle.