It occured because some tectonic plates collided and that created shaking and rumbling which formed the earthquake. let me know if this helped or not :)
8.2m questions
10.9m answers