Because people trying to commit violent acts will go to prison etc. and, assuming they're at least vaguely rational, will realize that (and that it won't actually return their money).
https://someunpleasant.substack.com/p/economists-do-they-kno...
Like the weather system, every molecule of air and water behaves "deterministically". And yet, we can predict no more than a few days, may be a few weeks at most, with any real accuracy. This is the hallmark of a chaotic system (aka the error in prediction grows exponentially).
Laws need to be bad enough violence may feel better.