Using salt water is using the principle of osmosis.
This principle basically states that things like to be even... so when you put salty water in your mouth fluids will come out of the cells in your mouth to even things out.
This reduces swelling.
Salt water is also a mild astringent (clears away mucous) and is bacteriostatic if not bacteriocidal.

