Could you please explain why?
Sure!
The Egyptian historian Manetho, 3rd Century BCE, described a massive brutal invasion of foreigners from the east, the Hyksos, who eventually ruled Egypt with immense cruelty for over 500 years. Manetho goes on to describe how an Egyptian king brought their rule to an end by defeating them and pursuing the survivors all the way to Syria.
However, a more reliable Egyptian source speaks of how Pharaoh Ahmose sacked Avaris and chased the Hyksos to their main citadel in southern Canaan, which he stormed after a long seige.
Thanks to archaeology, it is now known that the Hyksos invasion was gradual rather than a military campaign and that they were, in fact, Canaanites. The Egyptians at the time still had bad memories of invasions from the Assyrians, Babylonians and Persians. So, here you have what we today would call Xenophobia. They were sick of these unwanted foreigners and forcibly expelled them - but there's a big difference in kicking Canaanites out and God sending plagues to help over 600,000 Israelites out of bondage in the country.
Ian