God decided not to punish the people of Israel during the reign of Josiah for the sins they committed because
Josiah humbled himself before the LORD and repented.
He was merciful to him.
Josiah walked righteously before the LORD, his God.
He did not want Josiah to backslide.