Weight gain can be attributed to multiple factors, including an imbalance between calorie intake and energy expenditure, metabolic issues, certain medications, and underlying health conditions. For instance, medications like antidepressants, antipsychotics, and corticosteroids can contribute to weight gain. Additionally, conditions such as hypothyroidism and Cushing's syndrome can also lead to an increase in weight.