Wikipedia says "The attack occurred during the Iran–Iraq War, which had been continuing for nearly eight years." I guess it wasn't supposed to be a war that the US was involved in directly? But they were apparently getting their helicopter shot at and were doing things in Iranian territorial waters, so I guess they weren't just hanging out.