Nevertheless, if we develop Darwin’s insight, we can see the emergence of purpose, as of life itself, by small degrees, not from above, but by small increments, from below. The first purpose was the organization of matter in ways complex enough to sustain and replicate itself—the establishment, in other words, of life, or in still other terms, of problems and solutions. With life emerged the first purpose, the first problem, to preserve at least the improbable complexity already reached, and to find new ways of resisting damage and loss. Brian Boyd
There is a line with evolution where you are no longer doing science and enter the realm of religion. The above quote is more theology than science. The author is constructing a modern creation myth. Anthropomorphising evolution as if it has a master plan to create purpose to solve problems is a lot like saying that gravity wants to keep me connected to the planet.
It is essential to keep theology separate from science. There is a tension between the two points of view that makes it more likely to question. Giving the why questions the same answer as the how questions makes the world one dimensional. If evolution becomes the only reality then there is no need to question. Any question that is asked has the answer of evolution and because of this there is no longer any need to think or question.