If capital punishment works why aren't there public executions?

Kinda like guns. If guns are a deterrent why would you want to conceal it?

If capital punishment works why arent there public executions?
If capital punishment works why aren't there public executions?
Post Opinion