Crazy, aren't they? Rolling in the dirt is basically a way of cooling off, or in many instances, it helps 'scratch an itch' also. Intact cats will roll around (especially females) to spread phermones to attract a mate.
Please let me know if I can assist further.
Feline Healthcare
16 yrs health care mgmt & issues relating to cats, reproductive issues and multicat environments