Changing the active collection redraws many regions, not the Outliner header though (blender itself does not need a redraw there -- it does not present anything related to active collection in the header). This was requested from Addon devs in #109995 (placing active collection related buttons there). Pull Request: https://projects.blender.org/blender/blender/pulls/111725