Any kind of preoccupation, whether with food or something else, indicates the presence of anxiety. Anxiety is a key element in eating disorders. Being preoccupied with food takes time and energy that would otherwise be spent on more productive things.
When food dominates thought, there is little room for friends, recreation, or doing well in a job. These things can lead to isolation and depression, which are also common in eating disorders.

