How does this make sense?

I’m lonely but when I’m with friends or family I just feel sad.