Issuing NOTAMS prior to an attack feels a bit like a modern version of the old practice of lining up opposing armies in a field.
Iran is scared. And not very smart.
Maybe they are expecting some attack?
NOTAM is mostly defensive move. Basically they do want to shoot at anything flying in that areas and they do not particularly want to down some civilian plane.