Yahweh said to me, "Go again, love a woman loved by another, and an adulteress, even as Yahweh loves the children of Israel, though they turn to other gods, and love cakes of raisins."
"Though they turn unto other gods ..." There is a stern echo of the first commandment of the Decalogue in this, "Thou shalt have no other gods before me."  The overriding nature of Israel's apostasy was distinctly a religious thing.