The US used Afghanistan as a way to churn money through the Military industrial complex and get nice paybacks, definitely 10% to the big guy. As a bonus, I'm sure they used the poppy fields to generate some dark pool cash.
With China, they don't give an F about Afghanistan other than their rare earth metals. The Taliban will probably gladly take a cut of the mining through royalties and China is going to make off like a bandit, securing even more rare earth metals which are increasingly needed for modern life. It's not even novel, just look at what China did in Africa.