Agricultural societies completely trounced hunting societies. Hunting has been mostly sport in all but far corners of humanity for thousands of years. Humans have been raising cows, pigs, sheep, chickens, llamas, and other animals for food (and other things) since even before plant agriculture.
And if you can't till the land efficiently, sheep and cattle are a very efficient use of it. If you can, having pigs and chickens eat the plant waste is also very efficient.
Partly they didn't, they hunted the animal. Or the animal provided other stuff - milk, eggs, leather, bones. People need a source of protien that contains all the amino acids they need and for earlier societies meat is an easy way robust way to get that.
And earlier societies were not great anout effificent ise of land and animals. The near extinction of the Amercan bison is one examples.