Chlorine is not something that discolours nail products.
lots of things can discolour gel polishes as they are very porous ... or we would not be able to soak them off.
Hair dye, tanning solutions, make up, smoking, dye in clothing such as jeans, some foods such as curry, tea bags etc. Many many things.