This can be explain through Newton’s first law of motion where an object at rest remain in rest unless acted upon by an unbalanced force. Hence, the dust particles having inertia and trapped within the pores of the carpet has the tendency to remain at the state of rest, it does not move and resist motion but when the carpet is beaten with a stick, dust comes out because the force from a stick acted upon it.