Convergent evolution is totally a thing. What if at some point in time, there was a virus running around and copy pasting some dna around?
I think it is also true to say that convergent evolution often produces results that differ genetically, even though the resulting phenotypes serve the same purpose.