Demonetization induced usage reduced once cash was back in circulation. It was COVID era fear of touching cash and compulsion of lockdowns that really made digital payments hit the stratosphere.
COVID might have convinced few people that's all.
Demonetization's effect is not clear since UPI came out just a year before Demonetization took place.
It took off because of young generation and costs nothing as simple as that. They forced businesses and other to embrace it.
Fun fact, i have been using UPI ever since it came out and used to pay for coconut/veggies with it even back in 2017