isnt the sun the one yellowing those plastics?

UV can trigger the chemical reactions within the plastics that yellow the plastics, but UV + peroxide does a different chemical reaction to bleach them.

Both is true