Amphibians came to shore and became reptiles. Later on, they evolved into birds. Some of them came back to the water.