It's a common misunderstanding that evolution has a "goal". You see this most often when evolution is presented as a progression with human-kind as the end result. Evolution simply selects for organisms that are more well adapted to the current local environment; it does not select organisms that are further along the path to some "goal". Mario Ageno, a professor of biophysics put it like this:
"The ideal of a bacterium is not to become a man, but to become two bacteria."