WTH: why can't I define labels and categories in YAML for automations?

Why isn’t it possible to define labels and categories for automations in YAML and only through the UI? This seems like it should have been implemented when categories and labels were introduced, but it wasn’t.

This is also necessary for helpers.

Only in part of labels since categories are not available for helpers.
Also, I am may be wrong - but categories are not a part of an entity.
Imho, this is a bit bigger; “why we cannot assign labels & areas for entities in yaml”

Regarding helpers, fine- I see your point @Ildar_Gabdullin .

The thing is that if its possible to define categores and labels through the UI, it should also be possible to easily do this by yaml as well. I guess the challenge is to know whether or not the label/categories exists otherwise the automation might fail? Otherwise you would also need to be able to define labels and categories themselves through yaml which would also be nice.