Bachelors and flats

See, I wanted to know that just as everybody in India has the right to live anywhere individually, can somebody tell me that in Noida, maximum elderly people from outside the area come and live there .They make a rule that bachelors will not get rooms or flats. Whereas these bachelors are domiciles of Uttar Pradesh. Who gave these societies this legal right? And these rules are also imposed on flat owners who want to give their flats to bachelors. Why do those kids have to wander around in fear in their own state?