Good thing for India is it can maintain relations with Afghanistan inspite of not sharing border with it and use Pakistan position in between as buffer, this makes Pakistan angry. Afghanistan has history of trouble sharing border with Afghanistan sometimes is sharing trouble. This is I think probable cause of Pakistan's anger at India.
Well mutual intersts can be best described as "My enemy's enemy is my best friend".
Welcome to real politik