Genocide Of Banu Qurayza
This is about the punishment. The authority decides whether a crime of violation of a treaty or rebellion deserves that punishment. Violation of the treaty amounts to rebellion. Banu Quriaza was ready to attack the Muslims, but they just missed the chance. So they were punished with the same punishment already mentioned in the books.