I figure it's like my 4 yo used to do... He knew where the potty was, could more often than not go potty without issue, but darnit if from time to time he wouldn't be preoccupied with something else and end up piddling down his leg.
So I figure it's a chickens "Huh? Wha's that? Uh Oh!"..
:p