Natural selection has shaped our minds as well as our bodies.