The cake mix is considered a raw product and bacteria can still reside in it—although, that's very rare. Baking the cake mix ensures that any potential bacteria is killed before someone eats it.