Evolution arises from a wealth of failure: 1) natural selection requires large and variable populations comprised largely of organisms that fail because their designs do not match their present circumstances and 2) chance destruction occurs at all spatiotemporal scales.
So clearly strict optimization does not reside in the designs, contra religiosos and radical adaptationists alike. Nor does it reside in the process of selection: every species eventually dies out–by maladaptation, stochastic extirpation or an external force (say, a large meteorite in yo’ face).
And yet biological life began early on Earth and continues on, four billion years later, and will do so after the present climate state collapses or we nuke ourselves senseless.