Simple: Masculinity. I theorize that, in public, he increases his dominance over other males in order to protect his companion(in this case, you). This prevents anyone from potentially harming you. Short terms; He is trying to protect you... I think. Idk about your personal life.