Adultery laws aren't a matter of enforcing morality, not really.
Adultery laws are a matter of the government enforcing a contract. Marriage is, legally speaking, a binding contract. Historically speaking, that was the primary purpose OF governmental recognition of and involvement with...