Hamas exists and attacks Israel because Palestinians keep getting oppressed by israel, once israel stops their oppression and apartheid rule there won’t be any need for hamas to fire rockets or carry out attacks.
The fact that they are classified as terrorists frankly means nothing to me, anyone thats inconvenient to american imperialism is classified as terrorists so like I said it means nothing in the slightest