Do you neeed to be married to move to an apartment or house?

so me and my boyfriend are finding a place to live together. One apartment we liked the lady told us we need to be married or else we can't live here.. 😕 Is it true then everywhere you need to be married ? or just apartments do that?