command + tab or clicking on any app in dock opens all windows of that application
cmd-Tab in macOS always works like this. It switches apps instead of windows, and all non-minimized windows of the app in current desktop will popup.

alt-Tab in MS Windows switches windows.

Personally I like the behavior of MS Windows. If you want this behavior, you might check something like HyperSwitch.