He died because he had sinned by doing the things that Yahweh considered to be evil. Jeroboam had led the Israeli people to sin, and Zimri sinned just like Jeroboam had sinned.