Because we're sitting here on the American side. In Iran it's probably called the America war or the Israeli war.
Another way to name wars, when they aren't happening to you, is based on where they happen. The war is happening in and around Iran. It's very unlikely that Iran will manage to bring the war to America. You could also call it the Gulf of Persia war.
You can also name them propagandistically, as in the "2023 Israel-Hamas war". Thankfully this hasn't happened in this case.