Why don't I fit in

I feel so awkward, I was spending the day with my friend and her friend invited her over to help cook I know the friend but when I showed up she didn't greet me I was standing there like a ghost I had to wait until she was done talking and I said hi how are you and I asked if I could help with anything and there were more friends hanging out in the living room that I didn't know too well so I stayed in the kitchen and the host she called someone who was busy to come help when I was standing right there I felt useless and like I was stuck at the house her husband was hospitable and came to talk with me and she gave me a 🔥 firey look like stay away from husband when we both had zero interest in each other he just was being kind because no one else came to talk so then I'm feeling bored and I'm not sure what to do everyone else was talking some were on there phone and I spent the time on Facebook since I didn't know what to do

I feel like this everytime I go someplace new where I don't know anyone going to birthday party's dinners I feel out of place

Can anyone help me what do you do when your at someplace new and you don't really know anyone