Any non-wealthy single person faces an uphill battle to both 1. earn a living 2. take proper care of themselves. In the Middle Ages people invented a rather neat solution for this problem: go live together in a big building, work together, pray together, cook together and call it a monastery.
all of these events predate the wide adoption of writing in the region, which makes it hard to tell how old the traditions described in the oldest sources are, though vedic scholars make arguments from internal features of the text
also it is common into deep prehistory for non-wealthy people to live with their parents as long as they are single; that's what most people do here, for example. no monastery needed