They don't! They may appear to make untruthful statements, but they're making them without any reference to a concept of truth.
"make no mistakes"
"make no mistakes"
See here: https://aclanthology.org/2023.findings-emnlp.68/ ("The Internal State of an LLM Knows When It’s Lying").