That function is just a wrapper for this function:
which will just return a reference to a static code cache.
Conclusion: no view gets run, it's just grabbing a copy of what's already been created.
In general, views is very efficient in such cases.
But I'd tend to agree ...
In the Drupal 8 forms api, any form element attributes not directly supported by the API get stuffed into the '#attributes' FormElement property. This property supports the entire HTML spec for form element tag html attributes, as far as I know. It's the catch-all for anything the Drupal development folks don't feel the need to directly define and model.