Because it was ripening and undergoing a process called “enzymatic oxidation” that resulted in the accumulation of lycopene, a pigment responsible for the red coloration in ripe tomatoes.

That one was from ChatGPT