config files / templates are typically declarative, you tel some orchestrator “this is how I want my infrastructure to look like, please detect changes and make it happen”.
it makes it much more easy to reason about things, as state is abstracted away.