Because not one of those acts of war against the US has occurred within ten thousand km of the USA?
What difference does that make?
This whole spat is because Iran wants to close the gulf--something that will have major effects on the world economy. (And note that Putin would love it as they are an oil exporter.)
There's a big difference between someone complaining about being attacked by their enemy in their own street; and somebody going to their enemy's house, making aggressive noises outside their front gate, and then complaining about being attacked.
If you go and camp out right outside their home, when you have no particular reason to be there, then that's clearly provocative, even if you obey the letter of the law and remain on public land.
America may not be breaking any laws, but we can all see that you are acting like an asshole, and needlessly goading a nation that has kept its temper far better than your nation did, given similar provocation.
If Iran treated US shipping in the Gulf, the same way that the US treated Soviet and Cuban shipping in international waters during the missile crisis, there would be no question that the US would engage in a full on war against them.
Iran is being extremely restrained. The US is known not to show anything close to that level of restraint; She is a bully who takes a needlessly aggressive stance, knowing that she has the might to win any resulting fight.
Your country needs to stop behaving like an asshole. Though given your current government, this doesn't seem likely to happen any time soon.