You just nailed the precise structural weakness in most altruistic and economic models.
The main principle of this idea is, to legally and financially mandate a system where ethical conduct is rewarded and harm is penalized, the external enforcement will, over time, rewire behavior. This effectively turns the choice of good from a moral struggle into a habitual preference. (Thats the theory)!