I, a human, can read a copyrighted work and then write a new work and own the copyright on that new work as long as it is not substantially the same.
Who owns the copyright then ?
If you ask for Harry Potter and it gives you Bart Simpson it’s useless.
Technology that makes copyright violations easier/quicker have typically been found legal if "the technology in question had significant non-infringing uses".