The macro algae uses up CO2 in the water which helps the pH stay up At night rather than going down.
this is from
@AlgaeBarn
“ plants (including macroalgae) take up carbon dioxide from their environment in order to store energy (i.e. make sugar) as well as to build biomass. Drawing carbon dioxide from water alters the carbonic acid balance such that it raises pH. Plants
onlydo this while carrying out photosynthesis. The result is that (especially in a small, closed system like an aquarium) sharp pH swings can occur between day and night cycles.
In a reef tank loaded with hermatypic corals and clams, you might have a lot of photosynthetic activity happening during the “lights on” cycle; activity in the refugium can add to this if its lights run “on” concurrently. However, if its lights are on
alternately, the refugium can perform a beneficial balancing act by stabilizing diurnal (i.e. day/night) pH values!”