This is an example of personification. The land is spoken of as having human qualities. In this instance, the land is pictured as a human being who finds such sexual practices so revolting that it is compelled to vomit people out of itself. This is repeated in Leviticus 18:28.
25 Le pays en a été souillé; je punirai son iniquité, et le pays vomira ses habitants.