During an earthquake, the sections of the building are subjected to movements which are relative to each other (for instance, the relative movement between two different floors).
When a quake occurs, the various sections of the structure undergo movements that are separate from one another (e.g., the motion between two distinct floors).