Most earthquakes directly beneath a volcano are caused by the movement of magma. The magma exerts pressure on the rocks until it cracks the rock. Then the magma squirts into the crack and starts building pressure again. Every time the rock cracks it makes a small earthquake.
They are what keep the environment more safe. Without funding to these people crime rates would significantly increase and would cause more danger in the environments such as roads not being properly maintained.