Short version is that Iran attacked an based that was empty (which they probably knew) with not enough missiles to get through the defense (which the likely also knew). Proof that even dictatorships feel the need to play games for the masses, not just democracies.