I thought it is super obviously that he must have been invited by Himewaka's friends (though I guess it's not very obvious for a character in universe). I found that a little predictable but maybe the author miiiiiight prove me wrong. Despite that, the "ofc by a girl" line is just perfect and actually made me laugh.