C. elegans neurons are non-spiking, making them more like analog circuits than digital circuits. In comparison, all mammalian brains use spiking neurons.
Of course you can still transmit continuous variable state indirectly using pulses (for instance, using pulse width modulation or frequency modulation) but it requires a bit more hardware.
Probably there is some kind of cross-over in complexity of the neural structure (density, length of the individual neurons) where it makes more sense to switch to a digital mode (cross talk for instance).