I don't even see them making sense for tenant rights or home selling. Placing a minimum on the size of apartment someone's allowed to rent to me, or the size of home I can buy ultimately comes into conflict with my right to decide how much money I'm willing to spend.
Other housing codes - say, requiring the wiring not to be a fire hazard - make a lot of sense as a way to protect me in situations where I can't reasonably be expected to have the expertise necessary to assess the situation for myself. But I am the ultimate authority when it comes to deciding how much space I need for myself and all my crap.