Before city-states were formed, the people of Mesopotamia were nomadic. This meant that they move around a lot because they hadn't learned about farming yet. It is not that their lifestyle prevented them from farming, but rather that they didn't even know about farming.