The gerbil is running in the wheel, which powers the bucket pump. The gerbil wheel and the water are originally on the "ground" level. The buckets are taking the water up to the higher level.
In a circuit, the battery pushes on the electrons, which gives them a voltage and they are no longer on the "ground" level. This process requires energy, which is provided by the gerbil and bucket pump.