when you run out of soldiers the villagers (population) fight a little bit before getting killed and a minimal diference established according to that ammount of villagers fighting can determine a winning attack or a defeated empire. That is why it is in the battle calculator
Does that applies for fortress siege too??