Same in Hungarian, they are usually written as a single word if the components together create a specific meaning or form a distinct conceptual unit, which is distinct from the individual meanings of the words.
For instance, "autógyár" (car factory) is a compound word made up of "autó" (car) and "gyár" (factory).
I suspect the reasoning is the same for Dutch.