A solar panel stores solar (sun) energy in a certain reusable form.
So do trees and all other vegetable matter. The energy in the food you eat comes from the sun, directly (your spinach and oranges and oatmeal) or indirectly (meat from an animal that ate plants). You are storing energy too. It’ll be released when you use it to function and also when you eventually add matter to the earth.
The sun also shines on rocks, lizards, and old rubber tires. Nothing is being taken away from the system. It just moves around.
Wind turbines move because they are in the path of the wind. They are built to store energy too, wind power, and redirect it to some human purpose. The trees outside my window also move in the wind, but from our point of view that energy is simply spent. Nothing is storing it for our use.
These are better ways of capturing and storing energy than cutting down forests or digging holes in the earth to find things to burn.