This is a society or owner preference, not a legal bar, since no law in Karnataka stops a bachelor from renting. Societies that do hesitate usually worry about late nights, visitors, or a flat being sub-let to more people than agreed. Ask directly during the first viewing whether the society has any informal rule on this, so there are no surprises later.
Sources
No outside source: this is how the practice works, in words, with nothing to cite.