This is related to the situations where WSS Agent (WSSA) from a test Cloud SWG tenant is installed on a machine, and it needs to be replaced with the WSSA from a production tenant.
The other scenario would be when tenant merging happens, so all the machines in the company will need to point to the same tenant.
WSSA
Each WSSA installer is stamped with a customer ID (which is the Cloud SWG tenant id). Once WSSA is installed, it will point to the same tenant even the WSSA upgrade (with the installer from the other tenant) is performed.
In order to change the tenant, WSSA needs to be uninstalled, and then the WSSA installer from the new tenant must be deployed.