Here's why:
* Geo- refers to the Earth.
* Thermal refers to heat.
So, geothermal literally means "Earth heat," and it encompasses the heat within the Earth's interior.