Do philosophers who believe in a naturalistic and deterministic world and assert

Do philosophers who believe in a naturalistic and deterministic world and assert a compatabilist theory of free will believe that people who do very wrong things should be punished as an expression of retribution or to make the person realize how bad they are? (Rather than the use of punishment as discouragement) I find it fascinating and deeply disturbing that philosophers would want to punish people who are perfectly innocent according to a incompatibilist ethical system.

Read another response by Allen Stairs
Read another response about Freedom, Punishment