I believe the answer for this question is:
“agriculture was an important part of the economy”
The two civilizations were originated close to a river which makes the lands around it contains a bunch of excellent nutrients for the plants. This makes it easier for both these civilizations to keep up a good amount of crops as their main means of obtaining wealth.