Although they were still living in the trees, the far-left needed fire for their “peaceful protests”. So they invented it. It was until a lot later that they started using it for warmth, cooking, light, etc.
Scaroth of the Jaggeroth showed the true nature of fire.
https://en.m.wikipedia.org/wiki/City_of_Death
One of the best of Tom Baker’s serials.