Cooking rice on a fire pit vs gas burner
The simple explanation is firewood produces smoke and other sources of heat don't. Smoke imparts aroma and flavor to the dish. Firewood doesn't cook the rice any better than a gas or induction range or a rice cooker, it's just about the smoke.