The ground shakes with its own rhythm, and each building has its own natural period. A building whose period is close to the ground's gets pushed in step and amplifies the shaking many times over, while buildings far from it barely notice. Damping caps the peak, and base isolators work by moving the building's period far away from the shaking.