- In the book of Leviticus (what you seem to be referring to) there are dozens of laws and rules outlined for the Jewish people - one rule forbids men laying with men and and another, beastiality. The act itself is what is described as an abomination, not the person. There were tribes and cities in those days that practiced the forced rape of men by other men - the laws in Leviticus outlined rules that would prevent that from happening among the Jewish people.
- God made a covenant with the Israelites after he delivered them from Egypt - they were to set their slaves free after 6-7 years. When some of the Israelites disobeyed this covenant - God punished them severely.
Jeremiah 34:
The Broken Promise. This word came to Jeremiah from the Lord after King Zedekiah had made a covenant with all the people in Jerusalem to issue a proclamation of freedom for their slaves. Everyone who had Hebrew slaves, whether male or female, was to grant them freedom, and no one would be allowed to keep a fellow Jew in the state of slavery.
All of the officials and the people who entered into this agreement, swearing that they would set free their male and female slaves so that they would not again be enslaved, obeyed and granted them their freedom. Afterward, however, they changed their minds and once again forced back into slavery those to whom they had granted their freedom.
Then this word of the Lord came to Jeremiah: Thus says the Lord, the God of Israel: I made a covenant with your fathers when I brought them out of the land of Egypt, out of the place of slavery, saying, “Every seventh year each one of you must set free any Hebrew who has sold himself to you as a slave and has served you for six years.”
Your fathers, however, did not listen to me or obey me. Recently you repented and did what is right in my sight by proclaiming that freedom was to be given to your brethren and even making a covenant with me in the house that bears my name. Now, however, you have renounced that agreement and profaned my name when each of you took back the male and female slaves to whom you had granted freedom and forced them once again to be your slaves.
Therefore, thus says the Lord: Inasmuch as you have not obeyed me and refused to grant deliverance to your neighbors and kinsmen, now I will proclaim deliverance for you—deliverance to the sword, to plague, and to famine. I will make you an object of horror to all the kingdoms of the earth.