This is largely due to the structure of the bird’s mouth and the logistics of lowering its long, graceful neck into the water. This behaviour allows flamingos to feed effectively in their natural habitat, but it has affected other aspects of their lives.

As flamingos are extremely vulnerable when feeding, their colonial nature has evolved to protect them. When a non-feeding flamingo spots a predator, it alerts the feeding and unaware flamingos of the danger.
Unfortunately, the practice of forming these large colonies means the birds face easy spread of diseases. Large groups of flamingos spread disease among themselves rapidly and this makes them susceptible to pathogens like avian flu and tuberculosis. Additionally, if their food source somehow becomes polluted or toxic and they don’t move to another source, the entire colony is at risk.
Source: flamingos World
