It is due to oxidation. If you make a big batch of toast, squeeze lime or lemon juice into the avocado mash. It prevents discoloration and keeps it green.