They were prostituting. Sodomy in most states is a crime.