When we rub two bodies together, heat is generated.
Two uncharged bodies when rubbed together get charged. This is because of:
What causes electrification of two bodies when they are rubbed together?