How can they say that a homeowner or renter can’t have houseguests sleep over for an evening?
State or city law or ordinance, who knows? Some local laws limit the number of people who can live in your house. I’m not sure I see the legitimacy in such a law.