Because it’s been well studied.
It doesn’t work and will never work as crime isn’t logical
No one commits a crime thinking they’ll be caught, a large percentage of crimes are heat of the moment - so people don’t often think ahead, or they will never consider the prospect of being caught.
It doesn’t matter what they know, harsher punishments have been proven to not work as a deterrent to crime.