Why did he hug me twice?

It was our first time running into each other in the parking lot and right when I went up to him he opened his arm for a side hug. He walked me to my car and we talked for a few minutes. He hugged me again but this time it was an actual hug. Our bodies were against each other. He rubbed his arm slowly on my back, I'd say about twice and he squeezed me tightly while doing the arm thing. This hug lasted way more than the first one, about 7-10seconds I think. Any opinions?
Why did he hug me twice?
Post Opinion