You lose less value in troops than your enemy does in an attack or in defense, you gain honor. Does not matter if you win or lose the battle.