because of all the sins Baasha and his son Elah had committed and had caused Israel to commit, provoking Yahweh, the God of Israel, to anger with their worthless idols.
In context
11As soon as he became king and sat on his throne, he struck down the whole house of Baasha. He did not leave him a single male, whether kinsman or friend. 12So Zimri destroyed the whole house of Baasha, according to the word Yahweh had spoken against Baasha through Jehu the prophet, 13because of all the sins Baasha and his son Elah had committed and had caused Israel to commit, provoking Yahweh, the God of Israel, to anger with their worthless idols. 14As for the rest of the acts of Elah, all that he did, are they not written in the book of the chronicles of the kings of Israel? 15In the twenty-seventh year of Asa king of Judah, Zimri reigned seven days at Tirzah. The army was encamped against Gibbethon, which belonged to the Philistines,