The keyword is each. You still have DNA from many of them. Plus DNA based ancestry works with key genes. A male has his father's Y chromosome, who has his father's Y chromosome, who has his father's Y chromosome and so on. The same goes for mitochondrial DNA through the maternal line. There are mutations of course, but those actually allow you to paint an (imperfect) timeline and create groupings (haplogroups). Men from Europe have more similar Y chromosomes to each other than to men from elsewhere.
Obviously none of that justifies racial or ethnic oppression nor indicates any significant differences between peoples, but it does allow for those trivial (as in, interesting bits of information that aren't all too useful otherwise) but imperfect groupings.
I don't know how the exact percentages are determined and I'm sure there is something closer to race science bullshit in there, but it's mixed with actual science. It's pretty simple to see for example that my mitochondrial DNA aligns more with people from Iberia while my Y chromosome is much more like men from England. Thus I am half Portuguese half English(-descended American). But it means absolutely nothing other indicating who my parents are. That of course tells you nothing about my intellectual or physical abilities or any predispositions despite what fascists claim.