Weight loss can be due to three main reasons:
insufficient intake of nutrients from food (starvation, digestive disorders); loss of nutrients by the body (diarrhea, vomiting); increased energy expenditure (physical activity, inflammation, tumors).