"The pH in ponds rises during the day because phytoplankton and other aquatic plants remove carbon dioxide from the water during the process of photosynthesis. The pH decreases at night because of respiration and production of carbon dioxide by all organisms." courtesy of
Same in the marine aquarium. That's why it's recommended to dose kalk
(pH~12) at night, when the natural level in the tank is lowest.