Why is It Called a Bachelor Degree?

In medieval times, a lad who finished his education was presented with a baccalaureus degree in the fine arts, where baccalaureus referred to a young squire or knight. A young nights’ degree.