Ephaptic coupling including electrical gap junctions are prevalent in the brain but are more of an anomaly than a selected design feature, as far as we can tell. There doesn't seem to be any conserved pattern of any type of ephaptic coupling across brain taxa that would suggest it has any specific role in sensory-motor information processing, at least.
For example, we don't consider any form of ephaptic coupling in our mathematical models of neuronal population dynamics, and I don't know of any group that does, although there might be. We've found the effects to be negligible relative to axo-dendritic electrochemical synapses, which far outweigh any anomalous ephaptic contributions. Typically, a neuron population will simply "overpower" any anomalously formed gap junction by simply producing more electrochemical axo-dendritic synapses to make up for any communication issue it may effect.