Why do they have volcanoes?

Volcanoes form from either techtonic plates crashing together or from hot spots under the earth