When we beat the carpet with a stick, then it comes into motion. But the dust particles continue to be at rest due to inertia and it gets detached from the carpet.