Actually, the sidestand switch powers the side stand relay when the sidestand is down.
The side stand relay is a normally closed switch so unless it is powered, it provides the ground path for the main power relay.
The main power relay is a normally open switch so it only operates when there is power and a ground path to energize it.
When the main power switch is energized it provides power for the fuel pump, the fuel injector, the ignition coil and the ECU.
Said in a simpler way if the sidestand is down all electrical power to the fuel pump, fuel injector, ignition coil and ECU is turned off.
By disconnecting the side stand switch where it plugs into the wiring harness, the side stand switch can not be energized so it will continue to provide the ground path necessary for the main power relay to provide power to all of the things needed to keep the engine running.