Dirt is associated with farming, and therefore with fertility and growth. Something underneath the ground symbolizes the unconscious. Because of the social importance of cleanliness, “dirtiness” has acquired many different connotations, from guilt, to unworthiness (“dirty white trash”), to sexuality (“dirty minds”).
[1]