Edit ah. no it’s when you click the app icon in the dock. I guess that’s the behavior sought here?
If one is screensharing or presenting to an audience and the only windows in the target app are minimized but contain sensitive information, one most certainly would not want one of those minimized windows to reveal.
As a sibling to your comment points out, the solution is to hold the option key down while releasing the command key. This verifies a user’s intention to reveal the first-minimized window.
When presenting, I keep close track of what information I have minimized and unminimized.
It would severely hamper my work (all of which is disclosed) to quit apps that have minimized windows with information I do not want to show to undisclosed parties.
To be clear, command-tabbing on macOS may not behave the same "Alt-tabbing" on other platforms (I honestly don't know). Specifically, command-tabbing does not give focus to apps that are hidden until they are selected and does not reveal minimized windows without user intervention (holding option down while releasing command.)
Automatically disclosing minimized windows for command-tabbed apps that have no disclosed windows would actually remove a privacy feature rather than enhancing command-tab app switching.