Thing is, they never explained it in these issues, which leaves us with "Hey, that time you were dating her as bruce wayne for like, a year and keeping the Batman thing a secret? She figured it out." Being the most likely explanation, which does make sense... Then they just retconned her into (probably) not knowing again when she came back.