Odds are the wiring goes from the switch to one plug and then on to the other plug.

Series and parallel circuits
https://en.wikipedia.org/wiki/Series_and_parallel_circuits