What is the best explanation for why mesopotamia built canals?

The Mesopotamians built canals because they need a way to water there plants and they need a way to control there river flows