Why do you have volcanoes?

Well, if volcanoes didn't exist, neither would the earth. Since volcanoes helped build the earth.