This happens because of oxidation. Exposure to air means your pasta will start to get discolored in the fridge after a day or so. It's not bad to eat, it just might look a little off.