They answer to your question is that they had no choice.
Not allowed to leave.
Not allowed to work.
Not allowed to peacefully protest.
Not allowed to live.
This bred the extremist element I'm Hamas.
Hamas didn't exist until relatively recently, and they've been getting slaughtered for decades before that.