I dunno, I would imagine it being a reaction to a bug bite/sting or an injury
Is your dog fluffy where you never noticed it before hiding under her fur? I would think if it had been there before you would have noticed it while petting her...
It could have just been a ruptured cyst or something. Let us know if you find out anything new.