One of the main jobs of the USN is to protect commercial shipping lanes. This is of US national interest because a lot of commerce flows through international shipping lanes. Its not unique to the US either. Its a historical duty of most nation's blue water navies. The persian gulf does not belong to Iran. Its international waters. But they have a history of using piracy in the persian gulf as a tool of the state and generally acting a destabilizing force in the area. So the US, and other nations often patrol the region to protect civilian shipping.