because they set themselves against God and His Messenger: God is stern in punishment towards anyone who sets himself against Him.
That is because they resisted Allah and His Messenger: and if any one resists Allah, verily Allah is severe in Punishment.