In Leviticus 20 we have the same thing maintained, with a strong caution against all that was inconsistent with God’s moral ways, and this in every kind of natural relationship, or indeed what might be unnatural.
It is mainly in view of the enormities practiced by the Canaanites.