The ECU is trying to hit a certain idle speed. The exact position of the throttle body for a specific idle speed will depend on a number of factors such as air temperature, coolant temperature, and the mechanical tolerances of the throttle body.
The ECU will try and "learn" what normal looks like so that it can hit idle quicker without having to hunt for it every time.