Why do distances sometimes change when I'm not moving?

Your phone is constantly gathering readings from satellites it can see in the
sky. The accuracy of the readings themselves will tend to improve over a number of seconds. As well, variations can exist due to hardware and weather
conditions.