Dolphins do not learn to live along the coast; they are already adapted to living in coastal waters. Dolphins are marine mammals and some species inhabit various environments, including coasts, estuaries, and open seas. They have evolved over millions of years to thrive in these habitats.