why did nature allow pterosaurs to exist