Plan in advance, they would have prepared in advance accordingly. All EU are angry now because Biden made promise to them at G7 on June that u.s. would have a presence in Afghanistan after the withdrawal. Now they realized Biden LIED to them.
Link: https://legalinsurrection.com/2021/08/memo-from-june-shows-biden-promised-g7-leaders-u-s-security-in-kabul-afghanistan-after-withdrawal/