The description in API is “Gets an interpolated height at a point x,y”
Since the terrain data is discrete but the world coordinates are not (practically), a height interpolation has to occur when you need to know the height of the terrain at a particular world coordinate. So that’s what it does.