I assumed it was because they recognised each other but could not quite remember the names beacause reasons, hence the 君 as opposed to あなた. They were familiar with one another, so slightly different to meeting someone on the street for the first time randomly.
Frankly I don’t know enough about the language to answer, that’s just my impression given the context.