Cairo was a good spot for the Egyptians because of the Nile river which provided people with food, water, transportation and trade. Cairo also provided protection from enemies like deserts, seas and mountains which surrounded Egypt.
Back when the Egyptians lived, most of Egypt was desert and sand other than the Nile river.