Origin of the name Barret

From a surname which was a variant of Barrett.