What is the meaning of [children and fools speak the truth]

Children and foolish people have a tendency to say what is true, because they have not learned that it may be advantageous or diplomatic to do otherwise.