One mechanism by which it's good for the employer is information asymmetry. The employer knows all of the employees' salaries, but the employee does not have this information.
I could see it going both ways, and I'm not sure how to figure out what the impact of wage secrecy is.