Axios website, quoting an American official:
The White House halted the attacks on Iranian missiles and drones in the hinted manner to prevent escalation of tensions before the elections.
The suspension of the attacks caused Iran to be bolder in carrying out attacks to raise oil prices and put pressure on Trump.