Iran is one of the safest places for EK to fly into around that part of the world. If this turns out to be an accidental missile strike it will still rank as safer than Baghdad, Erbil and Kabul at the height of their problems. It took ISIS to cause EK to temporarily suspend those flights and the freighter still went in and out.
Not saying I agree with it but it’s not untypical of EK to keep a high-yield route operating in such an environment.