The word 'switch' can also mean to change between two things. For example, on a railway line, sometimes the track can split into two different tracks. If the train is travelling on one line and changes over to the other, it has just done a switch.