If the configuration was data, then you would have to parsing steps:
Data => Python
Data => JavaScript
With this setup they only have one:
Python => JavaScript
Granted, storing it in YAML/JSON/whatever means that you could potentially have many different codebases / languages reading it without a Language A => Language B conversion. It just depends on what works best for your project / team.