there are/were a lot of nomadic tribes in human history. All of them wanted to eat, or at least have a stable and significant source of calories. Most of them lived in semi-fertile land though, which was not fertile enough for wheat/corn. So what they did was take a goat, let it eat all of the grass/flowers that naturally grew, and it produced milk for the humans. This way, both humans and the goat could live.