Why is hydro-energy said to be an indirect source of solar energy?

The hydro-energy is said to be an indirect source of solar energy as the enormous amount of water in rivers and oceans not only act as a big collector of solar energy but it has also great storage capacity for solar heat energy…