Flamingos are safer in a large group because there are more eyes watching for predators like alligators and crocodiles, but they also all eat the same type of specialized food (brine shrimp), so they tend to gather where that food is found.