I believe that the auto brightness allows you to ‘customize’ it by manually changing the brightness. It then tries to work based on what you have manually set, so if you raise the brightness a bit from where it would normally be, then it will continue to keep it slightly brighter than it would otherwise do, including not dimming the screen all the way in pitch black.
To ‘recalibrate’ it you can go into a pitch black room, turn auto brightness off, manually set the brightness to 0, then turn auto brightness back on. At this point it should raise when you take it out into the light and lower again to 0 when you go back into pitch black.
However, if you manually adjust it again, it will try to adjust auto brightness based on your manual input and it may not go all the way to 0 in pitch black if it thinks that you want the screen slightly brighter than standard.