Uncertain; possibly cognate with bug or from Welsh bwgwly (“to terrify”).
Practice speaking and memorizing "bogle" and many other words and sentences in English.