Why can a restaurant buffet be a risk?

Lots of people. More risky than food sitting around under hot lamps is many people handling the food, most without sanitizing their hands. It is always a good idea to take a scoop of the potato casserole from the new batch than scooping out the last remnants of the old one.