text: Probably has something to do with mating instincts.  Whether a chemical change, or a light-by-night cue they all probably head to shallow water and sand at the same time to make it easier to find a mate.  Jellyfish and squid come close to shore in large numbers at certain times for the same reason.