Spending money on food is part of this expenditures approach for calculating the GDP.

consumer spending
sum of government spending
sum of all the country's businesses spending on capital
gross exports
gross imports