To all who wonder why there are still wolves if dogs descended from wolves, why there are still apes if humans descended from apes, etc...
Let’s say there’s a large population of wolves. Humans can extract a small subpopulation and, through artificial selection, begin breeding the domestic dog. The subpopulation goes on to become what we think of a “dog,” while members of the original population either remain or contine becoming what we think of as “wolves.”
You can apply the same logic to humans and our primate ancestors.
So who extracted the small subpopulation of apes and bred them into humans?