Let's be clear; the Taliban are "strong" like roaches are "strong". They survived. They had to keep retreating from up-front fights with the US, though. They had no capacity to stand up against them.
This wasn't a battle between two titans with the USA limping away, defeated. This was a guy smacking his shoe at a roach until he pulled a muscle in his arm and gave up.