This was for all the sins committed by Baasha and his son Elah. They sinned, led Israel to sin, and made the Lord God of Israel furious because of their worthless idols.