Unfortunately these things don’t always go to plan and what you might see on the screen to be fact is unfortunately a work around because a special effect shot was not plausible enough.
But they made it work that is what really counts.
I think the plan was he was meant to put out the flames with his foot but that was altered when the effect did not work.