How to add a custom taxonomy to a custom post type’s document tab

If you’re using the Block Editor you also need to add 'show_in_rest' => true for the taxonomy. You only have it for the CPT currently.