In this case, the independent variable is the food given or the absence of it, since the dependent variable is the object of attention, study. As we can see in this example the other conditions in an experiment are controlled, (volunteers are presented healthy, and is everything else is assumed remains in control.. cetereis paribus).
Independent variables are modified by the researchers in order to notice changes and then validate or invalidate the thesis, that is they are putting into experimental validation this variable. This is a common feature in the scientific method.