I don’t even know he confuses me?

A guy I know he is always kind, very sweet and seems to be a good friend. I know him through my family.. but he just confuses me. But his behaviors are odd. Here are a few that have happened.
He will engage fully with me making me laugh, having full focus on me in a group setting where he reaches and grabs my thigh/knee under the table and squeezes it 3 times in a joking manor.
It’s happened almost every time the eye contact and I have his complete attention when he’s talking to me (We were all out for drinks) he is a nice guy so he’ll buy me and other drinks too. But why he hasn’t really touched me outside of hugs of hello and goodbye. (It didn’t make me uncomfortable but I was taken off guard by it) that same night he said he still is meaning for me to come meet his cat? Never followed through on that. So why say that
That same night his friends said to him you should give her your friends info maybe they will hit it off and go on a date. Just flat, no expression, no enthusiasm in his voice and just says “I don’t have socials” and then no one brought it up again he just froze and didn’t even entertain the idea! while everyone else was super enthusiastic when they brought it up to him…. Total block. Why? It’s annoying.
Then another time while at outing he was there, we were talking then it kinda died off so I turned to my right and started talking to the guy next to me…this guy will call him Dan and I were laughing have a cool chat… and here he comes from my left interrupted mid way steps over and just throws his hand up to the guy Dan and says “hi, I’m (insert name)” then doesn’t say another word to the guy and then Dan whom he shook hands with he completely stopped talking to me…. 🤦‍♀️ I was like ummm what the hell.
I don’t understand. Help me out. I’m not sure how to decode this. Because outside of this he doesn’t reach out to me and he could if he really wanted.
I don’t even know he confuses me?
Post Opinion