It's to ensure that people who already have some degree of proficiency in the language can't enrol in a beginners class and breeze their way to an easy HD. Also helps to make sure that someone who may think their skills are a little better than they actually are doesn't enrol in a course that is too advanced for them.