As Heather Cox Richardson says, "Trump sent officials to negotiate with the Taliban and in February 2020 the U.S. agreed to withdraw all troops, along with NATO allies, by May 1, so long as the Taliban stopped attacking U.S. troops and cut ties with terrorists.
In April 2021, Biden announced he would honor Trump's agreement and begin final withdrawal on May 1, 2021."
You'd think they would want to give Trump credit for the one thing he did right, but I guess the "cut and run" insult is too easy to use to attack Democrats.