Why We End Up Feeling Lonely in a Relationship

I was listening to someone talk about feeling lonely in their relationship the other day and I realized that sometimes I feel the same thing. It isn’t as often as it used to be, but sometimes it’s there; that wonder if my partner really loves me, or loves me in this moment or if my mate is thinking about me even though I can’t feel it.
I think it’s common for people who are close to another to sometimes feel this. I know over the years the wonder or worry has decreased. But earlier in my relationship I often wondered if my beloved loved me when I couldn’t feel it.