5000 is still the blink of an eye. Homo Sapiens as a species is something like 300,000 years old and arose from prior species that were already more advanced than any other animal living today.
Based on my very limited understanding, it seems like some members of that advanced species would have diverged and eventually become Homo sapiens. But others would have remained members of that species and continued living today, or become some other advanced species that wasn’t homo sapien. Did something cause them to go extinct? Or am I understanding it wrong?