Modi could have done that if he chose to – it was a political decision to keep Indian citizens uninformed.
Most politicians like to wield their power without being question. He knew that if he announced it ahead of time, he would have been criticized a lot. So he did this as a fait accompli.