Techy explanation follows...
It's done by having the connectors disconnect the power, excluding ground, first, by having shorter 'fingers' on the connector for those lines. The rest is up to the motherboard having isolation between that connector and the others, so that the drop of all the data lines to basically zero won't affect the other circuitry.