We know mold grows when it gets in touch with moisture. When you take a shower, some water got stuck there and started causing mold. Gradually they grow and get moldy. So avoid keeping the moisture, and the shower line will be free of mold.