Why do mast people who live in north Africa live along Nile river

for planting crops