Expected behaviour
listwallets is currently the only command under the wallet category which is not wallet-specific. In other words, it operates at the global level.
Actual behaviour
Adding support for this feature on the bitcoin-core js client is more complicated as there is no way to automatically detect which commands require a wallet to be set. Moving this out of the wallet category would be a plus (e.g. over to control). Another option could be listing a command's support for multiwallet on the help output or providing an rpc with command definitions.
What version of bitcoin-core are you using?
0.15.0.1