The framing effect happens because of the way our brains process information. We tend to rely on heuristics, or mental shortcuts, to simplify complex problems and make decisions faster. However, these heuristics can also lead to errors and biases, especially when we are dealing with uncertainty, ambiguity, or emotions. One of the heuristics that contributes to the framing effect is the availability heuristic, which means that we tend to judge the probability or importance of something based on how easily we can recall or imagine it. For example, if we hear about a plane crash, we may overestimate the risk of flying and avoid it, even though it is statistically safer than driving. Another heuristic that plays a role in the framing effect is the loss aversion heuristic, which means that we tend to avoid losses more than we seek gains, even when they are equivalent. For example, if we are offered a 50% chance of losing $10 or a 50% chance of gaining $10, we may reject the gamble, even though the expected value is zero, because we feel more pain from losing than pleasure from gaining.