It's peer pressure. It's a basic human thing, it's not your fault. I'm not gonna say it's ok to do cause it's not but I doubt he remembers you specially doing it and if you were to ask about it and apologize he probably wouldn't remember. You said it was 2 years ago and im sur eyou wouldn't do it again. You seem like a great person and you shouldn't feel bad.