Ovarian cysts due to polycystic ovary syndrome (PCOS) and hormone-secreting cysts affect body metabolism and hormonal levels leading to weight gain.