Imitation vanilla extract is easier and cheaper to produce. Pure vanilla extract’s flavor can be lost to high oven temperatures, while the imitation version is heat-resistant.
While Imitation vanilla extract is less nuanced in taste, it has a much stronger vanilla punch, which allows those sweet, toasty flavors to withstand the high heat of baking.