My friend implied that I needed to leave when her boyfriend got there. I didn’t know he was coming before we made plans. Is this rude?

My friend implied that I needed to leave when her boyfriend got there. I didn’t know he was coming before we made plans. Is this rude?
Post Opinion