6 year old says she’s not pretty

She was hanging with my husband and she was saying something to him and he was preoccupied with something so wasn’t looking at her and she said “daddy, are you not listening to what I’m saying because I’m not pretty?”

😭😞

And her sister told me she has said she’s not pretty a few times before.

How do I address this with her? What should I say to her? How do I improve her confidence/self-esteem, while also instilling in her that external beauty isn’t as important as character and how she treats others/how she lives her life?