they didn't went of course over Iran it happen in northern Iraq and around Baghdad.
why they had to bring Iran into this
Your reading comprehension is off in this case.
It did not happen around Baghdad, they contacted the ATC in Baghdad to get a bearing on their position. They were following the Iraq-Iran corridor
Make sense now?