Tabs are under application control, so a shortcut to close tabs can’t be implemented by the system.
The contention is to use Ctrl-W as you describe, but it’s usually only implemented by applications that use tabs. That’s why it works in Files (nautilus), but not Settings (gnome-control-center).