Raw dough has raw eggs and raw flour so it needs to be cooked/baked. Edible cookie dough does not contain eggs and the flour in the recipe is heat treated to rid the flour of any harmful bacteria like e. coli.