There was no real reason to unmask Flynn but there was no reason too, the issue comes with the leak of this information that followed. One official who made the request and got the name of Micheal Flynn unmasked leaked this to the media despite it being classified. This is illegal and everyone involved is denying that they were the ones that leaked it.