Would you want someone secretly taking video of the most embarrassing, context-free 5 minutes they could find of your job, and invoking a mob to attack you on that basis?
These environments, or disrupting their operations because you're trying to get a sweet shot, can be legitimately dangerous. Discouraging people from trespassing in search of publicity could certainly constitute a rational basis for such a law.
It's a neat trick to ask what possible justification there could be and then downvote the explanation.