Level Sensor Height Change conversion to gallons

As liquid is added to the kettle the sensor will show an increase in distance, (counts up).

If the sensor is measuring the distance to the liquid, how does adding liquid INCREASE the distance?