The joke is a pun.  A 'barbarous' person is someone savagely cruel; exceedingly brutal.  The word 'barbarous' sounds similar to 'barber' which is a person who cuts hair, especially men's, and shaves or trims beards as an occupation.
Some people who cut hair can be quite barbarous .