If they think "you're naturally skilled at this", they're usually mistaken.
My charitable version is what people would say if they could be honest and were aware of the relevant facts on the ground.
We have completely different anecdata. I've said and heard people say "be yourself" many times. Rarely have I seen it go awry. Typically the people who say "be yourself" are naturally skilled at social interaction, so they can read whether the person is also able to socialize and make the right decision. But I can see how someone who lacks social skills might repeat the saying without even noticing the level of social skills of the person they're saying it to. Much like what this commenter was talking about: https://news.ycombinator.com/item?id=19702757
My problems couldn’t be fixed merely by someone telling me to “be myself”, but they had the right idea.