27 for all these things were done by the people who lived in the land before you, and the land became defiled.

Read Leviticus 18:27 Using Other Translations

(For all these abominations have the men of the land done, which were before you, and the land is defiled;)
(for the people of the land, who were before you, did all of these abominations, so that the land became unclean),
“All these detestable activities are practiced by the people of the land where I am taking you, and this is how the land has become defiled.