They are only in power, particularly hamas, because Isreal has systematically targeted Palestinians, taken land, cut them off from resources and increasingly made their life a living hell.
Terror breeds terror.
If Isreal were kinder to their neighbours and actually recognised them as a state...