IRL, yeah, I agree that nothing like that could ever happen. But
for the purposes of the Trekiverse, I think we have to go with the "same genus" theory and assume heavy genetic engineering on the part of the Progenitors with further engineering by the affected species.