There's another possible avenue: they pick it up from the people they've grown up around, like their parents. They see how these people act and pick it up by osmosis, not necessarily with any conscious effort.
Yup. I tend to be very aware and conscious of how people feel based on social context and facial expressions, but I am not a likable person. People do not feel comfortable around me.