why did people long ago form communities