All of the sources I checked agree that this expression refers to someone inexperienced and/or naïve. My favorite explanation of the origin is from American farm language that refers to a foal or calf that is literally still wet behind the ears from the birth.