By dissimilation from *traberna, from trabs (“tree trunk, beam”) + -rnus, with original meaning "wooden shed".
Practice speaking and memorizing "taberna" and many other words and sentences in Latin.