google
ref
late 19th century: perhaps an alteration of bugger or bogey2.
wiktionary
ref
Alteration of the English dialectal words buggard ( bug + -ard), boggart or boggard.
From boogie board + -er.
etymonline
ref
booger (n.)
"nasal mucus," by 1890s; earlier bugger. Also boogie.