In life, we quickly learn when we are young that actions have consequences. We may not know of the consequences at the time, but we eventually learn that things have cause and effect. For example, turning a hot stove causes pain and burns. As we get older, we become able to use logic to be able to deduce the consequences of certain actions.
Unfortunately, the brain does not always work at maximum efficiency. There are some things that make our brains more impulsive and less caring about possible consequences. A good example is emotion. Make someone impulsive angry and you can’t predict what they will do. When a person has not suffered consequences for certain actions, then they are likely to do it again in the future.