I've been out of NEC practice for years, but there used to be certain exceptions regarding Grounding at remote outbuildings used to house livestock for the very reasons you described IE animals receiving shocks from perhaps watering devices.
What can happen is due to inductance and capacitance among the long parallel wire runs where Hot Neutral and Ground are all bunched together the Green Equipment Grounding Conductor (bonded to a metal waterer outer case/frame) can at the remote site have a potential HIGHER THEN LOCAL MOTHER EARTH. Then when old Bossy is deep in mud and water and her nose touches the water she receives a shock OUCH. It can be that even if the watering device has some contact (likely NOT a good low resistance effective ground) with mother earth, due to resistance it, which has its case bonded to the Green Equipment Grounding Conductor carried out, still has a potential HIGHER then the wet earth where Bossy stands.
Sure your heating element may have a problem, but even if not, the metal case/frame of the watering device which contains the water HAS TO BE AT THE SAME POTENTIAL AS THE WET MUD WHERE BOSSY STANDS.
The methods to reduce such shocks to animals consist of good tight low resistance non corroded connections back at the feeder panel,,,,,,,,,,,,,,Good tight low resistance Neutral connections,,,,,,,,,,,Good Neutral/Ground BONDING,,,,,,,,,,,,,,,Good low resistance earth grounding of the Neutral at the main panel,,,,,,,,,,,Proper low resistance NEC approved methods (of which I forget) to hold the watering device at the same potential as mother earth where it stands.
Bottom line: Good Grounds,,,,,,,,,,Good Neutral connections,,,,,,,,,Good earth grounding,,,,,,,,,Good non defective no leaking heating elements
NOTE all these methods and equipment used to verify them MAY REQUIRE A TRAINED PROFESSIONAL instead of non electrician farmer Billy Bob and Bubba solutions lol. The energy levels are so low a cheap volt meter may be ineffective to find a voltage difference yet its still enough to shock old Bossy, you may need a professional electrician using good equipment to find and solve this ??????
Sorry I forget all the NEC rules and exceptions regarding livestock housing grounding and electricals
John T Toooooooo long retired Power Distribution Design Engineer and rusty as an old nail SO NO WARRANTY ON ANY OF THIS yet its still true the watering device MUSTTTTTTTTTTT be at the same potential as the wet muddy earth on which it stands or Bossy is shocked !!!!!!!!!!!!!