Driving for 12 hours in the rain with the bike on a hitch rack can force water into the controls/display. Then a plastic bag and rubber bands is enough,
On hub motor bikes, water has been known to drip down the cable and enter the motor at the axle. For that reason, most of the time, you find the cables leave the motor in a downward direction.