Inertia Of REST:The tendency of the body to be in state of rest and not go to a state of motion is called inertia of rest
Inertia of rest
comes in application here . When you hit a carpet with a stick the particles of dust have a tendency to be in the state of rest so that is why the carpet moves back but the dust particles remain in there places and comes out.