What applies to the individual person applies to the community of persons

What is good for a person is also good for a community. For example, if it is good for a person to live with safety, then it is also good for a community to live with safety. The same applies to things like shelter, etc.