It's important to remember that Israel declared war against Hamas (a branch of the Muslim Brotherhood), an Iran-funded terrorist group that currently holds power in Palestine and is only Iran-funded because Palestine's location gives them close and easy access to serve their mandate of killing Israelites and destroying Israel. And Israel counters this by trying to limit Hamas incursions and rocket strikes through an occupation of Palestine (following the Six-Day War in 1967), which Hamas opposes, and naturally crap happens between the two.
Iran and Israel are mortal enemies - think the USA and Russia in the 80's times 100. Hamas is Iran's closest military arm to Israel without actually declaring war on Israel, and this conflict has been going on long before the Israeli occupation. If Palestine was "freed" tomorrow the Hamas offensive would not stop, and in fact, it would only intensify given the easier access to loading up munitions and armed forces on the Israeli border.
If you think that the Iran-sponsored Hamas are the "good guys" and are just "trying to free the people of Palestine" then you're not worth conversing with. Gaza and the West Bank are just incredibly-valuable beachheads for Iran to effectively launch attacks (by proxy) on Israel.
And yes, many non-Hamas Palestinians are sadly caught in the middle, but that's the sad fact of any war. The innocent always pay for the wicked.