Putin trying to buy favor among his own Muslim minorities and playing the “long game” with China for influence with anyone in power in Afghanistan.
This isn’t isolated. Look at the Chechens, etc.