Answer:
Ancient Egypt was incredibly lucky, but it used that luck masterfully.
It was Herodotus who said:
“Egypt is the gift of the Nile",
Every year in Egypt, the Nile overflows and creates a rich valley of black soil that is abundantly fertile. This fertility was central to Egyptian civilization.