The house of Ahab also strongly influenced Ahaziah (v. 3). His mother was Athaliah, the daughter of Ahab and Jezebel. Because of his apostasy Jehu executed Ahaziah along with his uncle Jehoram, the king of Israel. Ahaziah had no descendant who could succeed him on the throne when he died (v. 9). His mother killed all his sons except one whom the high priest and his wife hid away when he was only an infant (vv. 10-11).
"The fact that royal infants may regularly have been put into the care of wet nurses or foster mothers becomes the key to Jehosheba's frustrating Athaliah's plans; the suckling child was overlooked and could have escaped detection as he grew by mingling with other priests' children or perhaps as a temple devotee like the young Samuel."59
The place where they hid him was evidently a bedding storeroom.60This too was a judgment from God on Ahaziah.