In #emacs, dired-mode and occur-mode both have edit modes.
In dired-mode, you enter edit mode by disabling read-only mode (C-x C-q), while in occur-mode you press ‘e’. To address this inconsistency, add the following to your init file:
(keymap-set occur-mode-map “C-x C-q” #‘occur-edit-mode)