Basic question, what is purpose of anchor and head?

One reason I can think of is if you wanted to display a tooltip at the location closest to the user’s mouse after a selection. For this, you would use the selection $head.