Weird URL creation behaviour

Look at the following examples:

echo Html::a(’ File’, [‘get-file’], [‘class’ => ‘btn btn-primary’]);

echo Html::a(’ File’, [‘file’], [‘class’ => ‘btn btn-primary’]);

I’m creating those URLs from a module called admin. The first one creates a link to /admin/controller/get-file and the second one to controller/file. Apparently it’s caused by the hyphen.
Why is that? If instead of an array I pass a string like ‘get-file’ then it works like the second example.