The most likely explanation for this scenario is convergent evolution. Convergent evolution occurs when two distantly related organisms evolve similar adaptations to similar environmental pressures or ecological niches. In this case, the two organisms may have evolved similar physical characteristics and behaviors in response to similar selection pressures in their environment, despite being distantly related on a phylogenetic tree.
An example of convergent evolution can be seen with the wings of birds and bats. Although birds and bats are not closely related, they both have wings adapted for flight as a result of convergent evolution. Similarly, dolphins and sharks have evolved similar streamlined body shapes and fins for efficient swimming, despite being distantly related on a phylogenetic tree.