According to information from The New York Times, Iran gave advance warning to Qatari authorities about the impending attack on the US air base in the emirate.
This was done in order to reduce the risk of casualties and minimize human loss in the military operation.