The Leviathan of the Book of Job is a reflex of the older Canaanite "Lotan", a primeval monster defeated by the god Hadad.
The Leviathan of the Book of Job is far older than the lotan. But Leviathan is also mentioned in the Canaanite "Lotan", a primeval monster defeated by the god Hadad.