Why the verb "to fag" means what it does seems to be an open question, and doesn't seem to be related to the pile-of-sticks root.
https://www.etymonline.com/word/fag?ref=etymonline_crossrefe...