Don't know if you have any sense of what the Iranians have done in the past in the Straits of Hormuz, but they have had a nasty penchant for dropping floating mines and launching anti-ship missiles in the INTERNATIONAL shipping channels.
All true.
As is the antagonism by Iran (and by the US towards Iran.)
As the Iranians are well aware.
Which is why it should not be shocking to you that they view American ships within a couple of miles of Iran as hostile, and act accordingly.
Just like we would act as if the Iranians were hostile should they try to park a dozen nautical miles off the coast of the US, or should they come to an arrangement with some other country that supposedly justified their doing so.
The point is that we know there are hostilities with Iran-so what are warships doing in Iran's back yard? Certainly not defending America and avoiding war. If the Iranians sent warships so close to America, even in international water, the act would rightly be decried as dangerous provocation because of the state of hostility between the two states. The fact that the straits of hormuz are "international water" does not make the presence of US warships there
any less provocative towards Iran, than Iranian ships next to American coastal waters would be to America.