It's impossible to say. I'm sure not every "blonde lab technician" in San Francisco belongs to Starfleet. For all we know, he met her in a bar or on Shore Leave or through mutual friends. Cadets and civilians have been known to mingle. Heck, it's not as though Captain Kirk never romanced a woman who wasn't in Starfleet.