单项选择题

A.Because the master of the shop told him to do so.
B.Because he had enough money for a meal.
C.Because the smell of the food attracted him.
D.Because he wanted to pay a visit.