Glass and rubber are insulators. An excess charge (positive or negative) building up on some part of an insulator remains localized. So, a glass or rubber rod can be held at one end while the far end is being rubbed with silk. The far end of the rod acquires a surplus of electrons but those electrons never flow into the ground through the hand.
A copper rod is an example of a conductor which has free conduction electrons. On holding one end of the copper rod and rubbing the other end with silk, electrons are transferred from the silk to the copper rod, and those excess electrons are free to flow. Because like charges repel, the electrons move away from one another, travel through the rod to the ground through the hand. As a result, the copper rod remains neutral despite the rod being rubbed with silk.