Gilderoy Lockhart is a phony and a con man who makes outlandish claims about his exploits and adventures in the books he writes. None of these stories are even about the things he did. Therefore, when he is actually assigned the task of saving Ginny from the Chamber of Secrets, he decides to flee.