Notice what God says in Leviticus chapter 18. After rescuing Israel from slavery, God warned them not to practice the customs they had picked up in Egypt, or learn the ways, customs and traditions of the Gentile nations that they would encounter in the Promised Land (vs. 1-3). Instead, God commanded Israel to follow His ways (vs. 4-5).
God then describes the pagan ways of these ungodly nations in great detail. In verses 7-20, He condemns all kinds of heterosexual sex relations that fall outside the holy boundaries of marriage—incest, fornication, adultery, etc. In verses 22-23, God condemns homosexuality and bestiality. Together, these sins break down and destroy the family unit that God had so lovingly created and instituted.