Sometimes, when people are depressed, they crave carbs.
I have gained a lot of weight from meds, not from having a bipolar illness. I take psych meds AND daily prednisone. Either/both can cause immense weight gain.
I hope you find the answers you may be seeking.