Those authors only wrote what God wanted, but God allowed them to use their own styles and human perspectives in what they wrote. We must take that into account and not read the Bible as if it were an instruction manual God wrote and shipped down from heaven.