The Law of Moses and the Code of Hammurabi

The Code of Hammurabi (Codex Hammurabi, originated 1760 BCE in Ancient Babylon) is an ancient law code that predates the Law of Moses (1312 BCE), also known as the Mosaic Law/Torah (Jews) or Old Testament (Christians).
Hammurabi's Code was created by the Babylonian king Hammurabi on seven foot tall, black diorite steel and depicts the king receiving the law from, Shamash, the Babylonian God of Justice

The Law of Moses was created in 1312 BCE after the Code of Hammurabi in 1760 BCE. There are several similarities between both laws. How can the Law of Moses be considered God's objective authority if a similar code of law was established before?

(Compare) the Law of Moses and the Code of Hammurabi.

The Codes of Hammurabi and Moses (with Copious Comments, Index and Bible References)
The Laws of Moses and the Code of Hammurabi by Stanley Arthur Cook