Do you know of a Buddhist text explaining why living in a community? There are a number of texts explaining how to live in a community, what rules to follow, what activities, etc. For instance, the classical Vinaya texts, or the "Standards and Rules of Purity" genre in China and Japan (ex.: Chanyuan qinggui, Dogen's Ehei Shingi, etc).

However, I am looking for traditional texts that explain why to live in a community. It could be aimed at monks, lay people, or both. The denomination does not matter much.

I'm looking for commentaries or treatises rather than sutras. It is to use the material as a basis for giving lectures.
the question is why to live in community. a little effort to answer has arisen out by a slight thought giving and personal experience. we are very unfortunate not having buddha among us . if he would have been then without asking whether it is need to live in community or not , we would have gone with him .thanks to his magnetism and charisma. then how we would go to live in community?. buddha has said that his teachings will be the guide/lighthouse in place of him after his mahaparinirvana. so we have now option of understanding/studying/practicing his teachings. even though we are kicked by life so many times we dont understand its futility. we think everything as  permanent . . with this understanding if we go to any commune, we will play there also with all our weapons i.e greed,anger,hatred etc. so as per my experience it is worthy to be in community membered by like minded members only after having experiential understanding of anitya  /impermanence by practising the teaching of buddha . otherwise the community becomes a sort of resort with some sort of resort having some sorts of disciplines of getting up from bed, eating timings etc etc.