Probably of onomatopoeic origin.
Practica parlar i memoritzar " beffa " i moltes altres paraules i frases a italià .