Way means wires. A three-way switch has three terminals, A four-way switch has four terminals.

I am not old enough to know why.