that was because their messengers were coming to them with clear proofs but they disbelieved so allah seized them. indeed he is powerful and severe in punishment.
ذلك بأنهم كانت تأتيهم رسلهم بالبينات فكفروا فأخذهم الله إنه قوي شديد العقاب