Itās also known as a destructive plate boundary.
The oceanic crust subducts, melts and rises to form volcanoes. The plates may get āstuckā at one point, oceanic crust is still trying to subduct, pressure builds up, plates get āunstuckā triggering huge esrthquakes.