he felt hungry and went to a gym to eat
he went to a gym so that he could be inspired by other people who are working out
a gym doesn't serve any food and people eat before they work out
he wanted to lose weight