Why is chlorine added to the swimming pool water?

Chlorine is a kind of salt, it is added to swimming pool waters to kill all the germs that come from other people's bodies or businesses.