You don't eat in front of people who are fasting. Just as you wouldn't eat in front of people at home who are not eating.

Etiquette world over has the custom that you don't indulge if those around you aren't (for whatever reason).

It's considered rude, nearly everywhere.