Why do guys brag?

I recently got really.lets say close.to this guy. He said he wouldn't tell anyone about it if I didn't want anyone to know. The next day, the whole school knows the when and where of my time with him. My reputation is now, 'slut' all because he wanted his friends to know. What do guys do that?
Why do guys brag?
Post Opinion