Despite their wickedness, the people of Nineveh were capable of repentance and turning away from their sins. God recognized this potential for good, and he chose to show them love and mercy in the hope that they would turn away from their wickedness and follow him.