Earthquakes and Volcanos are mainly on plate boundaries, but some of them are not. For volcanos, this is because the plates are moving apart (divergent) and it creates a space for magma to rise from a plume to the surface. The tectonic plates are always moving, and the edges get stuck as they are rigid, building pressure and stress. When the pressure gets too high, energy is released causing the earthquake.