Back then, the value and morals of the Babylonians were based on the Hammurabi Code.
I this code, a person that broke the law will be subjected to the punishment that is equal to the crime
For example, if you stole , they will chopped off your hand
hope this helps