A charged object attracts a neutral object...but why do they repel afterwards?
2 answers
If they touch, the excess charge goes to the uncharged...meaning both are now the same charge and of course repel.
The initial attraction is due to induced polarization of the neutral object.