Why does it seem, much of Turkish foreign policy has recently become reactionary in nature? Reacting (to a large degree) to fluctuation in domestic internal politics and people's perception. Some saying it is because of a new party called YRP threatening to take away Erdogan's voter base for Various reasons.(?) Among others, soft stance on Israel. Don't know how accurate is this. I could be wrong, as I am not well versed in Turkey's domestic politics.
Even if we consider it as a value and principles based move, Small and medium power unless supported by superpowers or strong regional allies, can't afford such luxury. Chances are, meterial odds will outweigh the moral benefits.
If there were multiple regional/international allies closely coordinating such move, it would've made more sense for Türkiye. In this way more or less Backlash and adverse effects are distributed.
Or it could be that president Erdogan knows, a ceasefire is close. So, it would be a short term political Stunt without long term economic repercussions.
Foreign Policy has always been reactionary, look at the Koran burnings for example.
The government has lost many votes to a conservative party because they successfully exploited the economic relations with Israel. Now they're trying to catch up in a race to see which party does more to support Palestinians.
But the average Turk does suffer, because Israel has been one of the few trade positive countries for us.