According to the passage, which factor best explains why the majority of the ancient Egyptian population lived near the Nile River?

religious beliefs
travel opportunities
political boundaries
agriculture