In the tale of "Briar Rose" by the Grimm Brothers, there are thirteen fairies in the kingdom, but only enough seats in the kings court to seat twelve. The thirteenth shows up anyway, and places the curse on the baby princess as punishment for leaving her out.