The origin of this factoid is one British study about paternity tests for fathers on some street. However, the methodology of that study was deeply flawed and the fathers self-selected (i.e. they already suspected they weren't the biological fathers). Later studies has put the rate of "false fatherhoods" at about 1%. https://www.iflscience.com/false-paternity-isnt-actually-wid...
When genes are sexually recombined, they don't recombine randomly per-base pair, they're cut and recombined in big strips. The chromosomes actually only 'snip' in a small number of places.
This means that after a relatively small number of generations, it's quite easy to have no genes at all from one of your ancestors.
I don't recall the exact numbers but it's something like 8-12 generations where you start having serious numbers of ancestors with no genetic connection.
In other words, past a dozen or so generations, any data we've got on bloodlines has a lousy signal to noise ratio for proving direct descent.