I mean on the small ROM of MCUs you don't usually want to keep the device tree around, so it's just sensible that it gets turned into macros and is not accessible at run time.
Given that FreeRTOS does not deal with hardware at all, I don't see how it is a comparison.