EKF3,Optical flow and GPS behavior

Hello, I set SRC1_POSZ and SRC2_POSZ as barometers, and then set SURFTRAK_MODE to 0. When I manually switch the GPS source, the height of the rocker in the ALTHOLD mode will not fall, but the height of the OPTICAL FLOW source in the ALTHold mode will fall or even land on the ground. What is the reason