This has me curious.
If the soil was carrying the "shock" then the system has been grounded and there is no shock to touching the fence, as far as I know. Perhaps there is minimal leakage of current, but then how would the primate feel that?
I don't think we understand this phenomena Eduardo describes.
Electric fences make a distinct "tick tick tick" sound and the animals are very aware of it. When it stops, they are more likely to test the fence. Perhaps this primate was reacting to that? Perhaps her tail came into brief contact with the fence? Or she touched some other thing that was touching the fence?
Eduardo, more observations would be very helpful here!
Electric fence cannot safely be the sole or primary restraint for animals. It fails too often. When weeds touch it and are not trimmed, it shorts out and is inoperable (as Eduardo says). If a tree limb falls on it during a storm or windy day then there is no barrier. So as others have said here, hot wire helps restrict animals' access to parts of their enclosure (to protect plants, keep them from disappearing over a hill, etc.). So even with electric fence there needs to be a real, inescapable physical barrier. Even a good water moat is usually more about the moat than the water.
The "invisible fence" used for household dogs fails and they require shock collars on each animal. How often have I seen my neighbors' dogs trotting down the street when their fence was out or their collars had come off.