It helps children learn that adults will lie and encourages them to be better than their parents when they grow up. If kids think their parents are perfect, that may seem too far of a goal to reach.
But there is a complication. "If I became better than my parents after learning they would lie to me, will my kids also do the same?"
The world is not perfect, Lie to and beat your kids and they will be fine.