If you think about it, typically everything made with flour is baked or cooked: bread, cakes, cookies, pasta, etc. Raw flour, meaning flour that isn’t cooked or baked can contain bacteria. Heat-treating flour is important when making something that won’t be baked, like edible cookie dough! It’s important to heat-treat the flour so you get rid of any lingering bacteria.