Used to trap the moisture, small metal chips, and dirt, from the refrigerant entering the capillary tube. If let through, it will restrict the free flow of refrigerant through the capillary tube.
Pencil driers need to be changed when replacing the compressor.