Answer: They evolved from the same ancestor.
Step-by-step explanation:
This phenomenon is called Homologous organs. Different species which are closely related to each other tend to have relatable anatomical structures. This is because ,once upon a time, they belonged to a common ancestor from whom they diverged.
Food habits, competition , survival of the fittest- all these factors required each of these new species to develop their common organ in their own special way. This would make their survival easier. Thus, talons , claws , hooves are not as distantly related as they seem.