Natural selection operates according to immediate cirumstances and not toward a long-term goal. Homo sapiens did eventually evolve as a descendant of the first humans, but there was nothing inevitable about it.
"The Origin of Humankind". Book by Richard Leakey, 1994.
