It basically the charcoal making concept. The materials and process are usually different. They both drive off impurities through heat.
The coke is denser and more consistent. Wood density varies by species this the resulting charcoal varies. Thus harder to control the process, more material and harder to do.
I think there swiss have a process for smelting steel without coke.