Is this a serious question? Because you're hungry, want to eat, and can't or don't want to cook (e.g., traveling for work).
Sitting at a bar with other people, suddenly you are not eating alone.
It's called socializing. Some people enjoy such things.