伙食 means 'mess, communal meals' — historically the food eaten in barracks, work units, or boarding schools.
伙 itself meant 'a group of people sharing', from the old practice of soldiers cooking together.
伙食费 is the line-item for this on a budget: school cafeteria fees, military meal allowances, work-unit canteen charges.