What does it mean when someone puts their hand on your shoulder?

Last week in English, I was flustered over a mistake in my transcript, and I was stuttering, breathing heavily, and I couldn't speak coherently or read my own handwriting. Me and my group were working on an assignment, and my crush sits right next to me. He wondered why I was freaking out, and I told him. He put his hand on my shoulder and told me to calm down and that it'll be alright. What do you think it meant?

What does it mean when someone puts their hand on your shoulder?
Post Opinion