A body of people bound by something held in common. Not proximity but sharing is what makes it one.
Latin communitas (fellowship, community), from communis (common, shared); people bound by what they hold together rather than by where they happen to stand.
A body of people bound by something they hold together rather than by mere nearness. Sharing is the whole test of whether a gathering is one of these or merely a crowd.