Auto white balance has no reference to look at, so it assumes one. The commonest rule is gray world: the average of the scene is neutral, so the camera scales its channels until the mean red, green and blue are equal. A second rule, white patch, assumes the brightest area is white. Many cameras combine the two, and most apply the result continuously, recalculating on every frame or every few frames.
For an everyday photograph, a varied scene of many colors, the gray-world average is often close to neutral and the guess works. A microscope field is not a varied scene: it is dominated by one or two stains, so the assumption is wrong before the first frame.