TL;DR
Hebrew mythology borrows from Akkadian mythology where the primordial ocean is depicted as the Serpent Goddess of Chaos Tiamat, and this mysterious "Leviathan" in the Bible is a preservation of Tiamat.
Literally, in the Bible, everything that is feminine is literally evil at its root, as its rooted in chaos.
She's at least honest unlike God tho