Maybe GE is simply taking every time it sees your altitude increasing and using that to iterate its counter upward, including very short stretches of up. Maybe its not subtracting the down portions from the upward ones as we mentally would do.
Computers just do what we ask them to do, in this case, its just looking at every time the altitude goes up and adding all that together.