This is true, but it's too easy to go from that to assuming that ALL our cognitive biases were selected for. Some of them just emerge because it's hard to design a brain that doesn't work like that.
But some really basic cognitive biases, like the tendency for irrational confidence, are clearly evolutionarily adaptive.
But some really basic cognitive biases, like the tendency for irrational confidence, are clearly evolutionarily adaptive.