Yep. Another crazy example: in Germany you often need a registered address to open a bank account, which is often a requirement for renting an apartment in the first place. The government had to intervene and make a law in the end, although most banks still drag their feet.
But to rent a place, several of them required me to have a family income that was only enough if I had my wife with me, but since we weren't married officially yet, it didn't count.