The best answer is. If a government doesn't have definite laws, the people may abuse the amount of freedom they have. The code of Hammurabi says that "what you do to someone, will happen to you too" (eye for an eye) kept the citizens in the area safe because they knew there would be serious consequences to what they might do to others.