The official statements were consistent with the overall long-standing goal of removing US troops from Iraq and Syria. The US on the other hand is moving in thousands of troops to shore up their presence. The initial knee jerk reaction commenting being reported was not from official channels thus just individuals venting and internal virtue signaling.
It’s a PR bonanza. Iran has been looking for a way to improve its image in the neighborhood. That’s the reason why they had been prodding the US for violent responses using their harassment tactics for the past months. That’s the reason why they were dicking around the Straits of Hormuz. Why there were rocket attacks. Why Soleimani was in Iraq. Why protesters were storming the Embassy.