Ground, in this situation, acts as a comparison to all other parts in a circuit as far as voltage is concerned. If you switch where the ground is connected to in the circuit then that part becomes zero voltage. All other parts are then compared to that point given either a positive or negative voltage. Kirchoffs first law, when you add up all the voltages in a series circuit it will equal zero volts. Or something like that.