IIRC, evolution is an optimizer but not intelligent. Some of our expectations of intelligence are actually more lax than people think and include optimizers.
Until we find out that evolutionary steps/genetics are the firings of the neurons of some planet scale brain that thinks using evolution. We do have quite a bit of junk DNA ;)