There are chemicals in the plastic to reduce flammability that break down over time and turn yellow.
It happens slower if the plastic is kept out of warm temperatures and sunlight, which is why some are yellower than others.
You can get rid of it but it takes some effort. Google for "retrobrite"