Teach Children True Values
Children do not know true values. A very small child will prefer a shiny copper coin to a crumpled ten dollar bill. Older children would eat all desert and no meat if parents allowed it. Children will not look beyond this life unless they are taught about heaven and hell.
If children see their parents forsake the assembling in order to go visiting, will they not be taught that visiting is more important than the assembling to worship God? If parents continually criticize the church of the Lord, speaking evil of faithful brethren, will not the children grow up to despise the church of the Lord?