Maybe they’re helping Palestine because they don’t want tons of refugees? Israel is determined to ethnically cleanse millions of citizens and it makes sense that none of the surrounding countries want to deal with that. The best thing for their self-interest, and luckily ethics in general, is to stop Israel’s continuous genocidal campaign.
Doing nothing has gotten them killed, too. Look at the West Bank. Look at the March of Return. Doesn’t Palestine have a right to defend themselves?
Also, there are tons of Palestinians refugees. 1.9 million have already been forced to flee their homes in this conflict, and there are 2.4-5.6 million from previous ones. They mostly go to Jordan, Syria, Lebanon, and Egypt.