Liquefiable soils want to contract when sheared (that is, the soil particles want to move closer together). In order for a saturated soil to contract, the water has to be pushed out of the pore spaces. However, the earthquake shaking induces the shear loads faster than the water can be squeezed out. This generates increasingly high water pressures which eventually become so large that the effective stress drops to zero.