I'm not a watch-maker so can't give you the technical answer, but I can tell you that having handled many Rolexes the date-change even on a new watch rarely falls exactly at midnight.
I believe that to save the movement from a sudden power requirement, the complication is finally activated after pressure has gradually built up over some preceding amount of time. Perhaps this explains why the moment when it is finally "tripped" can vary slightly.
H