Gaza used to be part of Egypt. When Egypt and other middle east countries went to war against Israel in 1967, Israel took the Gaza Strip. In 2006, it said that Gaza could govern itself. All Jews left Gaza.
Gaza had elections and Hamas won the election, and there has never been an election since.
https://en.wikipedia.org/wiki/Hamas_government_in_the_Gaza_Strip
Egypt has no interest in the return of Gaza. In fact, it has also built a wall that ensures that Palestinians (or rather Gazans) don't get out.
Perhaps you might like to read more about it? Let me help you.
Until the break up of the Ottoman Empire in 1917, Palestine was the entire area that Judea (Israel) used to be. The Romans changed the name from Judea to Palestine. That area comprises modern Jordan, the West Bank, and Israel.
Until the 1967 war when Israel took Golan Heights (from Syria), West Bank from Jordan, and Gaza from Egypt, when people referred to Israel, they used the word 'Palestine.) Yasser Arafat decided to call the conquered territories 'Palestine' as an irritant to Israel. The west followed suit.
So when history refers to Palestine, they are not talking about areas that are now known as Palestine.
https://en.wikipedia.org/wiki/History_of_Palestine
For the past 20 years, Iran and the Middle East have paid billions to education institutions in the USA to change the narrative, and these institutions have happily taught students a load of bull.
Ergo, you have presidents of the most illustrious colleges in the US promoting bs that Israel and Jews are guilty of all the world's wrongs (how 15 millions Jews can be guilty of all the sins of the world against 8.3 billion people is beyond me - instead, they have won more Nobel prizes than any other ethnic group on earth.)
So, yes, you ask the right question. The straight answer is that they can't be.