It was found that when the same environmental challenge was provided to the two sets of organisms who belonged to different ancestors and with different evolution patterns evolved similar phenotypic to survive better is called
Similar habitat can result in selection of similar adaptive features in different groups of organisms but toward the same function. It is referred to as convergent evolution.