How would cookies cause food poisoning?

I'm fairly certain the cookies I bought gave me food poisoning, but cookies aren't normally a source of food poisoning (not like meat, sushi, etc) and they were definitely cooked enough so not from under-cooked eggs.

Is it likely someone at the bakery had dirty hands?
8 answers 8