Well of course, this can be deduced scientifically: most characteristics of sexual dimorphism in humans are not polite to flaunt in public, but a beard is one of the few features of sexual dimorphism that is acceptably to show publicly, so it is only natural that men want to show off their beards.