He believed that chocolate was one of the best medicines for any ailment, be it physical or emotional. It's highly likely that Lupin was allergic to the very thing he loved to give to children and eat himself, because he was a werewolf.