Hi,
It's because this hook is used for symfony forms. Customer form is already migrated to symfony but category form is not yet.
You want to use hookActionCategoryFormModifier hook as for now...
Here is the link which explains how to identify is it simfony or not. https://www.h-hennes.fr/blog/2019/07/25/prestashop-1-7-identifier-si-un-controller-admin-a-ete-migre-vers-symfony/
Thanks