For decades, cognitive psychologists have sought to understand how the brain works and in recent years have outlined a number of theories—from implicit biases to the psychology of scarcity and tribalism—to explain how that influences our behavior.