Why did the Europeans not colonize Egypt?

Europeans did colonize Egypt.

Egypt was occupied by France from 1798 to 1801 and by the British from 1882 to 1952.

Copyright Wanderlust World © https://www.ynyoo.com