Depending on the software program your using most
auto corrections, except under high contrast situations do a decent job.
My guess is the software looks the WB and the histogram, which is a graphical representation of the tonal values between 0 and 255 and goes from ther.
With regards to what it does, it makes adjustments to lighting (exposure), colour cast (White Balance), levels and contrast and perhaps saturation and or sharpening.