Confused About Itmam Hujjat
In short, punishment is awarded for hostilities and denying Islam. After they were conquered, when given option, they accepted islam. Read the verses of surah Tauba, it give this option for them see verse 1-7