US came to dismantle Al-Qaeda Network in the region. Due to this effort, Pakistan has one less terrorist organization to worry about and TTA seems to realize that it cannot support multi-national terrorist organizations.
US also attempted to convince Pakistan to dismantle Taliban groups but Pakistan refused to:
https://www.dawn.com/news/1660188
Pakistan was too focused on Hamid Gul policy to understand that snakes cannot be tamed.
You will find details in following posts:
Just a normal day in Kabul Actually, if we look at the pattern (of targeted assassinations of Afghan commanders loyal to the Talibs, and low this), it seems like a coordinated campaign to sow chaos amongst the Afghan leaders and their relations with the outside world. There is either an...
pdf.defence.pk
Unconfirmed Source Update; Turkmen or Uzbek ethnicity terrorists attacked Pakistan’s Embassy in Kabul fired over 100 rounds of ammunition and 7 sniper shots into the embassy. Another (3rd) accomplice of the attacker was arrested today. Suspect is currently believed to be a hired...
pdf.defence.pk
American handpicked Afghan leaders were willing to work with Pakistan but Pakistan was supporting Taliban groups and this was the root cause of tensions between Afghanistan and Pakistan throughout. It was easy for India to exploit this situation and launch its projects in Afghanistan.
Pakistan was too confused to make a decision.
Lack of consensus on what to do about Afghanistan.
US managed to convince Taliban to not support multi-national terrorist organizations and call it a day.
Trump administration pitched Intra-Afghan Dialogue to reshape Afghan political landscape but Biden administration scrapped this plan. Joe Biden understands Pakistan well enough.
This is not how it works.
When ISIL emerged in Iraq in 2014, Iraqi Prime Minister Haider al-Abadi has to make a decision. He chose to not negotiate with terrorists and wipe them out. He convinced US to support Iraq in this matter. Operation Inherent Resolve is a COIN masterstroke. Iraq has rid itself from the menace of terrorism to large extent.