Constant friction between two objects causes an exchange of electric charges, with one object taking the positive charge and the other taking in the negative charges, which cause a static buildup.