Those agencies could not carry out their mission of enforcing regulations
The concept of constitution originated with magna carta in british monarchy way back in 1215 A .D. magna carta liberatum is a charter agreed to by king john of england. It promised the protection of church rights, protection for the barons from illegal imprisonment, access to swift justice and limitation on feudal payments to crown to be implemented through a council of 25 barons.
The code of Hammurabi and Chinese legalism both rely on the idea that in order for a state or society to function well and properly, people need to follow a strict adherence to the rules of the state.