that is because they opposed allah and his messenger. and whoever opposes allah and his messenger indeed allah is severe in penalty.
ذلك بأنهم شاقوا الله ورسوله ومن يشاقق الله ورسوله فإن الله شديد العقاب