Righteous Judgement
I have noticed that decapitating leadership is a strategic goal of Israel. For all of human history world leaders have made decisions that got soldiers killed. They never cared, "it was for the good of the country". So now they learn that if you decide to go to war you will be the first one killed. Let's see if they still want to go to war "for the good of the country" if it means they are the first to die. Also, when you kill a general someone has to take their place. Suppose Israel has a relatively high placed mole, by selectively killing off generals they can get their mole promoted. Before Iran might have spent significant resources to vet people, but in the midst of war you have no time.
So then this causes confusion at the most confusing time, it can cause the leaders to reconsider and perhaps even become spies, and of course it helps the spies get promoted.