This is sarcasm. Its a direct quote from the movie Casablanca (one of the all time classics).
When ordered to shut down a bar, the police captain uses the excuse that illegal gambling is taking place in the bar. But the Captain is a frequent patron of the illicit gambling.
The exact quote is roughly
"Shocked, I say. Shocked to find that gambling has been going on in this location."