Fossils! By looking at early relatives of caimans and parrots, we see that they all have two openings on the side of the skull. These later got lost in the lineages leading to crocodiles (such as caimans) and birds (including parrots). The same is true for humans and hares.