How did the development of irrigation systems improve living conditions?

AIt gave people a surplus of food.
BIt made people switch from hunting to herding.
CIt allowed people to move out of town onto farms.
DIt made people less dependent on trade.