Paul urges children, basically those still living at home, to obey their parents, and also exhorts parents to treat their children in a godly manner. In that era, 1st century Common Era, about 1/3 of the population were slaves, and Paul writes so that both master and slave treat each other in a Christlike manner.