In many ways, it is a common sense exercise to find out why people do this. Think about it, a person usually lies to impress others or to get rid of a bad situation. Maybe they want to escape the punishment of not doing their homework or being late for work. It's a bit like the classic "The dog ate my homework." Many times, people lie because they want to impress others, so they beautify their achievements. In most cases, it is difficult to judge why people lie. This is the tricky part, and the easier part is to judge when they are lying.
Lies can cause all kinds of problems. When you lie, your face will turn red. After the truth is discovered, the liar will be in big trouble. After telling a few lies, others will no longer trust you. So always tell others the truth and never lie.