When the people of a nation draw near to God there is freedom, when the people of a nation fall away from God there is Tyrany.
Children were being involved in the depravity of Sodom and Gomorrah, and look how that turned out.