Have you thought about why that might have happened?
Could it have something to do with Israel funding and propping them up?
Is it related to the fact that the only Palestinian territory not being actively colonized is the one with the most Hamas presence?
When a child’s family is blown up by a missile, do you think it might give them a grudge against the group that launched them?
When Israel agrees to lift a blockade and doesn’t, even after a year of Hamas abiding the ceasefire, could that imply the Israeli government isn’t negotiating in good faith?
You can’t comprehensively talk about the “popularity” of an extremist group without analyzing the circumstances that gave rise to them. When we discuss the Nazi regime it’s very often brought up how the economic instability inflicted by WWI made the German people more receptive to Hitlers messaging.
Desperation breeds extremism so continuing to inflict desperate conditions is ensuring conflict will survive. Israel needs to pull out of the West Bank and allow Gaza control of their own utilities and trade.