There is a general tendency in all living beings to conserve energy, to avoid conflict if possible, and to travel the path of the least resistance. When they move, they try to do so in the most comfortable manner and with the least possible expenditure of strength and energy (they are only human, too).
Water seeks the lowest energy level by flowing downhill, through openings, and around obstacles. Electricity always seeks the path of the least resistance. It’s a natural law that you can observe every day in countless manifestations.