In this case it is a banana cream pie, but also in candies. The simple argument I've heard is that the alcohol in it will boil off, but in my case my imitation vanilla doesn't even contain alcohol. (Uses propylene glycol, not really an alcohol, right?)
But either way, why would we care about the alcohol boiling off. It's the vanilla flavor we want right? Does cooking it affect the flavor? (Cakes and such seems to counter that thought) are these recipes just misguided?