UPnP is just a generic discovery+RPC service. The router toggle is just for whether it should expose a service to let apps request temporary port forwarding (mostly used by torrent clients and game servers). The advice to disable it is because that ability is considered undesirable, not because there's anything wrong with the protocol itself.