They have no choice because Americans gave the Mujahideen (and affiliates which later consolidated into the Taliban) guns and Stinger missiles to overthrow the democratically elected socialist Republic of Afghanistan in 1992.
The American government gave rural right-wing evangelists the weapons necessary to overthrow the socialist government elected by a huge majority in the secular left-wing cities. Does that sound familiar?
The US gave weapons and trained with NATO the Afghanistan military to safeguard an elected government. The military surrendered in days. That is why Afghans have no choice.