Why is the nerve cord of an earthworm ventral instead of dorsal?

The nerve cord of an earthworm is ventral because the nerve cord runs down the ventral, or belly, plane of the organism compared to a dorsal nerve cord, which would run down the dorsal, or back, plane of the organism.