Let's not forget that each DNA sample also includes information about their relatives as well. I believe that's how the Golden State Killer was caught.
> The website identified 10 to 20 people who had the same great-great-great-grandparents as the Golden State Killer ...
https://en.wikipedia.org/wiki/Joseph_James_DeAngelo#Investig...