text: crab swarms, why do they happen?   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.