Why are the turbines for hydroelectric dams located far below the top of the dam?

The turbines for hydroelectric dams are located far below the top of the dam in order to maximize the potential energy of the water. The greater the height of the dam, the more potential energy the water has, and the more power the turbines can generate.