Products of superpower intervention.
Taliban refused to recognize Durand line before the intervention (our boys of Islamic renaissance). Central Asian republics have terrorism problem of their own, they would have kept Pakistan at an arms length irrespective of super power intervention.