The two events ocurred in so-called subduction zones where plates of Earth's crust overlap, bumping and grinding.