Our minds evolved to survive. But their inner workings have astonishing—and sometimes disturbing—consequences for everyday life.