How is my problem related to me wanting to become anorexic?

Whenever I feel depressed, the idea of starving myself or starving makes me feel better. It's probably like the feeling when someone cuts themselves.. it just feels good to feel hungry. It is nothing to related to becoming thin, so why do I want to starve myself to feel better?
Background Info: I did lose a lot weight by crash dieting but got back on the healthy track. I'm not happy with my body image, but I'm not sad about it either.
How is my problem related to me wanting to become anorexic?
Post Opinion