Synthetic dyes will stain the white material, while the smell of chlorine means that the carpet has been bleached to make it look older.
The smell of Chlorine is not a sign that the carpet has been treated with bleach. 