//The same way that fish eventually acquired the "lungs" genes.
Which took a million years. But now watch out - we can do it in 4 hours. That's the difference.
That's not how it works. There are not one universal set of genes for "lungs". When two species develop a similar characteristic, the genes are still completely different.