Why did the Egyptians build shadoofs?

To gather water along the Nile :-)