Numerous factors are involved in the formation of obesity.
One notable risk factor is an inactive lifestyle. Typically, a person gains weight easily if he or she absorbs more calories than he or she expends. If you take in caloric products and then do not exercise physically, you will definitely notice the increased kilograms on the scales.
The genetic factor is also noteworthy. In some clinical cases, the gene even plays a crucial role. Due to genetic predisposition it is quite possible for a person of healthy weight (if he does not exercise and stops eating healthy) to lose weight.
Of course, the cause of excess weight may be the current hormonal imbalance in the body. For example, people with hypothyroidism, Cushing’s syndrome, and polycystic ovary syndrome often suffer from excess weight.
A person may gain weight due to some medications (a kind of side effect).
Emotional moods should also be considered, for example, it is known that a person eats much more when he is angry or sad or in a stressful situation.
You may be surprised, but the risk of obesity increases significantly against the background of insomnia. During sleep, the body produces a hormone that is responsible for controlling appetite, therefore, it is necessary to regulate any sleep-related problems.
Source:
https://www.healthline.com/nutrition/10-causes-of-weight-
gain#TOC_TITLE_HDR_2