Glue Battery

Using Elmer’s Glue or Caulk You can make a type of water/earth battery. I got this idea from the cement cells, but wanted something that dries faster than cement. Its really cool that it works because when glue dries all the water is removed, so why does it still work?