This happened because of all the sins of Baasha and his son, Elah. They sinned and they caused the Israelites to sin. They worshiped worthless idols, and this made the Lord angry.