It's similar to the demonization in India in 2016 where the goal was to force people to declare their piles of black money. People don't always declare things correctly for tax purposes, and black money leads to other parallel economies (terrorism, trafficking, etc). In modern times it also encourages people to switch to digital payments rather than handling cash, something which makes tracing money easier in general.