The Indians were/are hoping to use Afghanistan as a proxy to fight Pakistan till the last Afghan, they have no personal love lost for them, they don't trust them due to being Muslim.
I remember many years ago I had a troll account in an Indian politics group chat with large following accounts, around second year after Taliban arrived.
They used to discuss just using Afghans as a proxy to fight Pakistan and keep it busy, focusing on their economics, if an opportunity arrised, even try balkanising Pakistan.
They all dreamt of raping and conqeuring all the women up till Afghanistan, whole chat would sexualise them.
Hindutva and Afghanistan is a temporary alliance of convenience vs Pakistan.