Here's another perspective.
Modi and the Indian military were shown their place by Pakistan after both surgical strikes and the Balakot attack.
- After the so called surgical strikes, Pakistani authorities took the domestic and foreign media and foreign diplomats to the sites where India claimed to have conducted strikes to debunk Indian lies & propaganda.
- After the Balakot strikes, independent analysts debunked Indian claims about inflicting any damage, and satellite imagery confirmed that India inflicted no damage, and on top of that the PAF bombed areas close to Indian military installations as a warning and also shot down at least one IAF fighter, captured the pilot, caused India to shoot down its own helicopter killing all on board - basically embarrassed and humiliated Modi and India.
The only thing India could do, since it got humiliated militarily by Pakistan, was to take the cowards way out and attack the innocent Kashmiris in Indian Occupied Kashmir - revoke IoK's statehood, communications clampdown, curfews, military crackdown and put in place policies to commit demographic genocide in IoK.
Subsequently, Modi & India had the Galwan fiasco with China and yet more humiliation. To top it all off, the Trump Administration got booted out, and there is no guarantee that Biden, despite still carrying US Establishment baggage, would push for the kind of confrontational policies towards China that Trump did, which would in turn reduce India's utility for the US to 'contain China'.
Take all this together, and it's not about 'Modi being a great Statesman or politician', but the fact India realizes that it has tried and failed with its policies towards Pakistan and China, and is living in a fools world thinking that it can manage a single front war, let alone a two front war.