There is a considerable literature that shows that people who develop anorexia and bulimia tend to have certain temperament or personality traits.
These traits tend to first be present in childhood, years before the onset of an ED.