Why did my guy friend hug me then say "you're my wife"?

Well we were with our friend group teasing a girl we know and we were all laughing and stuff then when we got out i was alone and he was still laughing from what was happening then he came and hugged me saying you're my wife then went away. Was he joking? Or something more? I don't want to over analyze tho but still
Why did my guy friend hug me then say "you're my wife"?
Post Opinion