People need hugs for comfort, and known support. (Great question =D)
Chat with our AI personalities
Guys give hugs for any number of reasons.
Perhaps he was happy and wanted to express this in the form of a hug.
Perhaps he just wanted to hug you, for no reason at all.