So God kills the tyrants in those wars and leaves the least evil to give them more chances to repent and the messenger and his followers would be saved and restart the society on strong values and good basis and here the balance between good and evil is restored and people are more able to survive this life justly