The weight gain usually comes from an imbalance between energy intake (too much food, or food excessively rich) and the energy expended (insufficient activity). Weight loss can cause muscle loss if the calorie restriction results in a protein deficiency.