I had chronic pain that prevented me from moving much because of the thyroid condition. After I started the medicine I was able to get on a regular exercise regimen.
So you were eating more than your daily caloric output.
Bad choices. Don't blame your condition making it painful to exercise for your inability to control yourself from eating so much that you were a double sized human.