Yes. I’d often wondered if some of the really large traditional buddhist monasteries were homelessness training camps, teaching you how to deal with poverty properly.
No, it’s woven into their respective Asian cultures but in thinking of societies as self-organizing systems, it just seems like a natural consequence that is historically and presently functional for its purpose