What do longitudinal waves have to do with earthquakes?

The disturbance from an earthquake propagates as a wave. This wave can be either longitudinal or transverse. (Since waves that pass through the Earth's core are always longitudinal, geologists conclude that the Earth is liquid. A liquid won't transport transverse waves.)