Do you like having people over?

I used to LOVE having friends over when I was younger and now I HATE it. Idk why. I feel so trapped when I have people over. I really enjoy their company but at same time don’t want them at my house. Does anyone feel this way?