The energy in fossil fuels also comes from the sun. Apart from geothermal, it's all sourced from solar, just different ways of storing and extracting that solar energy.
There's value in concentrating the energy so that you don't have to cover the entire planet in solar panels.
0.2% of the surface area of land on the planet, when covered in solar panels would produce enough energy to power the entire planet.