One thing that makes children lie is the fear of punishment.
If they do something wrong and your first reaction is to yell, belittle, berate, lecture and/or hit then is it really such a stretch to figure out why children continue to lie?

They lie to avoid such reactions.

It's always about fear.