The term started off as 'bean-feast' ("An annual dinner given by employers to their work-people. Also, (colloq.) any festive occasion"), with printers later abbreviating that to 'beano' and then . . . "Later, in gen. use, a festive entertainment frequently ending in rowdyism".
[Definitions in quotes derived from the OED website]