Anyone can gain weight. However, some people have a higher risk of becoming obese. Body weight can increase because of some illnesses or medication, but in most cases, obesity is caused by an unhealthy diet.