Why boys like to act cool?

They usually think that girls will think that they really are cool! So they act Like it!! I think that it's stupid... I'm a girl boys have done hat to me and I hate it! So really when they do it theyre being stupid!! If other girls agree??