Iran also announced the attacks beforehand. The target was the facilities, not the personnel as a means of strategic restraint. The US preferred casualties as causus belli.
Iran showed that America's military is not like Hollywood where heroes never step back and always win without hurting anyone. In fact the result was the opposite.
You're making it sound like we're talking about the failure to evacuate Potatoville Idaho before it was struck on a random Tuesday.
Instead, these are areas/personnel well-known to be at risk for Iranian reprisals, abandoned by an administration that also chose the timing of hostilities when they launched a surprise assassination of the Iranian leadership. (And a couple hundred innocent civilians.)
The USAF did, however, evacuate aircraft from Fairford UK after the war had begun. Presumably Hegseth's evaluation of the "optics" had changed by that point.