The section of the carpet which comes in contact with the carpet in motion at once, but the dust particles present on it, due to rest, stay in the state of rest.
Consequently, the section of the carpet moves along the stick leaving dust particles behind which tend to fall down to the pull of gravity.