this is because they defied allah and his messenger. whoever defies allah and his messenger must know that allah is severe in punishment.
ذلك بأنهم شاقوا الله ورسوله ومن يشاقق الله ورسوله فإن الله شديد العقاب