So that they can regroup and rearm. They know that no one will touch them in Pakistan. They are pretty safe there

And sometimes they control Afghanistan. It goes back and forth on who controls areas