Its meaning comes from a baby that has just been born and is still wet "behind the ears" among other places.
This term might alternatively have originatedon the farm, as it is said that after birth the last part of a foal or calf to dry is the area behind its ears.