Static electricity is generated when electrons from one material are rubbed off onto another. If you had two dissimilar materials, like glass and silk, then on is going to give up more electrons than it recieves. The imbalance of electrons is static electricity.
If you rub two identical materials together, they are both going to gain and lose electrons at the same rate. The net difference in electrons is going to remain zero. There won't be an imbalance, and you won't have a static electric charge