I don't understand why. Wouldn't prior art protect them in this case? They could just show a judge they had invented the idea earlier.
So here, the patent examiner is doing what you are suggesting. He is citing a prior art and while doing so, they have to make the patent available for public.
Edit: Literally the first two paragraphs of wikipedia: https://en.wikipedia.org/wiki/Prior_art