E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
The drawing for king and queen is a relic of the Roman Saturnalia. At the close of this festival the Roman children drew lots with beans to see who would be king. Twelfth Day is twelve days after Christmas, or the Epiphany.