Why do people tell me “you’re beautiful but you don’t know it”?

Friends regularly tell me that I’m a pretty girl but that I don’t know it.

I am curious why someone would tell that to someone.

Is it because the person reads as unsure of themselves, as someone that doesn’t like themselves? Or doesn’t carry themselves as someone who looks like they know they look good?