This is how every herbivore lives in the wild: they do their thing until they are eventually murdered for their meat by predatory death machines. It's just that most of the predatory death machines are falcons or owls or wolves or lions or tigers or bears (oh my!)
But it's a reoccuring theme in so many science fiction, no matter if print, comic, movie etc. since that genre exists.
Masses of people living in walled cities, while the wild outsides are forbidden for the commoner, with variations like only the elites are allowed to go/hunt there, or more recently that autonomous robot gardener/harvester/hunter/killer thing.