The maximum and minimum values are constantly determined during the recording. These values remain even when the measured values themselves have already been overwritten in the ring buffer ("split times" principle).
The View > Show Min/Max Values command shows or hides the minimum and maximum values. These are then displayed for each curve at the right edge of the graph.