This is deflection from actual on ground situation.
Pakistan and Iran had no overt escalation or any meaningful rise in temperature to warrant such action.
Since Iran simultaneously used ballistic missiles in multiple theaters with exceptional precision. It apparently seems an exercise in deterrence... not against Pakistan but for those making overt or covert calculations against it.
Now, Pakistan and Iraq(rendered as a proxy of Iran after previous US invasion) both rightfully felt the heat.
The reactions on the forum is quite evident. The fact that Iranians downplayed any reaction/retaliation from either side is a bit perplexing.
Iraq simply lacks the capability and even political wherewithal internally to do anything meaningful. But Pakistan did/does... and here is the conundrum...
What guarantees or assurances they had that it wouldn't?
Second, how does Iran internally portray or understands Pakistans role in the region? An almost servile entity of western interests, from onset all the way back to Mossadegh, staging ground for the coup.
For a lack of better understanding on inner working of Iranian leadership it is hard to conclude or even assess the perceptions in inner circles.
Does Iran perceive Pakistan as a threat?
They recently concluded a deal with India on Chabahar... if the above concerns are real than in light of them, perhaps a dual front... as India is nothing but slave of it's desires... and that port is nothing but purposeful circumnavigation or obviating geographical presence of Pakistan.
I had previously also weighed the possibility that the leadership is just jittery and had to produce results, counterintuitive as they maybe...
Unable to do much on the death of their celebrated General... lost over a hundred souls on his anniversary. And facing real possibility of escalation in the most unpredictable way perhaps ever...
As noted, and possibly as intended both Israel and the US noted down the demonstration of Iranian capacity to hit targets with precision and part of the equation of calculus on Iran and it's proxies.
For lack of better understanding, above are a set of variables among I'm sure many more and perhaps more plausible that can only be ascertained with further information or indulgence.