Not saying this is their reasoning, but if someone is on fire and running at you, a gun could kill them before they set you on fire. Also not saying this is their reasoning, but shooting someone who is suffering a fate they cannot undo could be considered merciful. So, shooting someone on fire could actually be effective.