AFAIK a Garmin doesn't get altitude from GPS but rather from a barometric sensor. Changes in barometric pressure during a ride will affect altitude readings. If you don't understand explanations here, time to do some studying. A Garmin is not the most user-friendly device ever invented.