Yes, food can be a drug.
You can crave the experience, the release of endorphins and dopamine and simply the experience of putting something in your mouth (latent dummy/bottle fixation.)
You need to find other stimulus to replace those highs (gym workours, running, active sports etc) or find a way of keeping a handle on the cravings.
I was skinny when I was younger, but my weight has yoyoed a bit after having a second baby.
Myth is that most skinny people don't think about slimming - after you get to thirty - you have to..especially when you have kids because you could be eating night and day.
I'm slim now - but not skinny. I weigh myself every day, have treats - but don't go mad..I go to the gym three times a week, but if I didn't - I'm sure I could shoot up..but, most of all - look at the triggers. If it is emotional eating then counselling and understanding the hole you are trying to fill is the only way it is going to dissipate.