You've spotted a genuine scientific inconsistency. Pandora's atmosphere is established as toxic to humans—high in carbon dioxide, hydrogen sulfide, and xenon, with no free oxygen. Ordinary combustion (fire) requires an oxidizer—typically atmospheric O₂. So when Jake Sully creates fire in the film, it's a cinematic oversight sacrificed for dramatic symbolism.
Fire is a primal human symbol—warmth, technology, civilization, Promethean spark. James Cameron prioritized this mythic resonance over astrobiological accuracy. The scene where Jake makes fire by friction (the "fire walk" sequence) visually marks his integration into Na'vi culture and mastery of primitive survival skills.
Ultimately, Avatar is space fantasy, not hard sci-fi. The fire scene serves narrative mythology, not planetary science.