Your cells need a constant source of fuel just to maintain your body, to breath, pump the blood all that. If you do not give the body the fuel, it will defend itself, and that mechanism is to slow the metabolism down. I think some people have more trouble with this than others. The friend who starved herself all day and then ate at night taught her body to slow down and conserve calories all day. Then at night, right before the lowest activity time of the day, she ate. The body said, oh, I have to conserve these calories, and hence she gained weight.
Also, it takes energy for the body to digest and distribute the fuel. That is why small meals through out the day keeps the metabolism up. You are constantly using energy to digest food, the body is getting fuel and is happy.
Another thing that the body does if it does not get the fuel is again defend itself. It does not like to use protein for fuel, but it will, so it will go after muscle and break it down to use it for fuel. So the skinny person who never ate, may not gained weight, but she probably did herself no good with her muscle mass and in the future may pay for it with a weakened body.