What is the purpose of pipe joint compound or tape?

They reduce friction in assembly and provide a watertight seal.