Obesity can happen for a wide variety of reasons. Genetics play an important part, as do environment and lifestyle choices.
If you are obese, the reasons why are not as important as a focus on what can be done to help you. Unfortunately, no matter the reason for your weight gain, there are negative consequences of obesity.