There's different versions of this report.
1. to end the war.
2. it's taqqiya.
3. it's because Hamas sold Gaza for dollars.
Not #1. #2 doesn't matter. #3 is my choice.
"Hamas was initially discreetly supported by Israel[..]as a counter-balance to the secular PLO."
https://en.wikipedia.org/wiki/History_of_Hamas