Why did guy act so weird during our first date, was he not attracted?

I was talking to a guy for a few weeks online, we matched and couldn’t meet as he was busy but we were vibing well.
We finally met in person but I could tell he just wasn’t feeling it, he ordered me a drink (without asking me) but he knew I liked it which was fine, and gave me a hug when I met him.

We went walking and talking, but he was asking me lots of questions but didn’t seem to want to talk about himself, when I had a chance to ask him stuff he’d just give basic answers and then ask me more.
Hardly much eye contact while walking, but laughing, but no touching or flirting from him, maybe a couple of times.

Then he walked ahead of me a few times and seemed distracted like he was looking around for places to walk, and when we sat for a minute he was playing with his hair a lot.
I was taken back because I thought online we matched well, and then he said he had to go after about 2hrs and said it was nice to meet me with another hug.

Then I got the dreaded ‘no vibe’ text later that night, but appreciate he let me know at least…was he just not attracted to me?

Why did guy act so weird during our first date, was he not attracted?
Post Opinion