Rust is a type of iron oxide. Therefore, rusting is a normal chemical reaction when steel and oxygen combine and corrodes. Water plays a significant role in forming rust in the toilet pipes. Even with solid pipes, water molecules can reach the metal through gaps. Once moisture gets in touch with the metal, rusting begins.