Currently in order to find out the name of the Action in Action::getActionName we need to instantiate the Action, which requires a Context and (after completing WikiPage/Article split, would require an Article). This brings in a lot of dependencies, and can also cause infinite loops with extension hooks (see T249162 for example).
Similar problems apply to Action::getRestriction.
Action needs to be instantiated cause both name and restriction are returned from Action::getName and Action::getRestriction, which are overridden by individual actions. Vast majority of actions just return a hard-coded string from these methods.
There should be a more lightweight way of resolving the action name/restriction.