What does it mean when a guy walks me to my classes?

This guy I'm barely getting to know like texting and stuff walked me to 2 of my classes today and we both wanted to walk each other but he would always win to take me even though I refused . My classes were no where near his. But if he likes me or something I don't get why he would because he has a girlfriend. He's totally cute though and I already told him he is and stuff and when we hugged goodbye it was awkward kind of.. I would be the one to make the move to hug so I don't know if he's just being nice or interested..
What does it mean when a guy walks me to my classes?
Post Opinion