Originally a diminutive of various German names beginning Bern- or Ben-. By the Middle Ages, it came to be a standard diminutive for Benedikt, the German form of Benedict, from Latin "blessed", and then a forename in its own right.
Thanks to Donald Whyte who provided much of the initial information for this site.