My guess: the heat needed/used to start the fire, whether friction or another flame, volatilizes some part of the fuel that you are trying to light. This will be invisible/vapor but when some part of it starts to burn, the rest “flashes”.
Most times if it hasn’t burned, you will light it so that a big gas bubble doesn’t form that could be a real problem.