Egypt might have had significant geographical advantage. Nile is just a single corridor to defend and fend off with significant depth. Invasions are simpler to handle when your entire land is in essence single continuous chokepoint.