Matthew 5:31, 31, "It was said, `Whoever sends his wife away, let him give her a certificate of divorce'; 32 but I say to you that everyone who divorces his wife, except for [the] reason of unchastity, makes her commit adultery; and whoever marries a divorced woman commits adultery.”
Deut. 24:1-4, "When a man takes a wife and marries her, and it happens that she finds no favor in his eyes because he has found some indecency in her, and he writes her a certificate of divorce and puts it in her hand and sends her out from his house, and she leaves his house and goes and becomes another man's wife, and if the latter husband turns against her and writes her a certificate of divorce and puts it in her hand and sends her out of his house, or if the latter husband dies who took her to be his wife, then her former husband who sent her away is not allowed to take her again to be his wife, since she has been defiled; for that is an abomination before the Lord, and you shall not bring sin on the land which the Lord your God gives you as an inheritance.”
Matthew 19:7 They said to Him, "Why then did Moses command to give her a certificate of divorce and send her away?" He said to them, "Because of your hardness of heart Moses permitted you to divorce your wives; but from the beginning it has not been this way. "And I say to you, whoever divorces his wife, except for immorality, and marries another woman commits adultery ."
The purpose of a bill of divorcement was so that the wife was free to remarry. Without that the husband could have left or kicked his wife out on her own without a way to make a living or bring in an income. If he gave her no bill of divorcement then he could essentially hold her hostage and prevented her from remarrying. Moses commanded him to give the wife a bill of divorcement which freed her so she could remarry.
Adultery is more than sexual misconduct. In scripture, especially the OT, adultery is also leaving God perfect plan. In James he calls his readers adulteresses. They left God's plan for them to live a holy life. Generally adultery is any deviation from God's plan for us.
Jer. 3:8, "And I saw that for all the adulteries of faithless Israel, I had sent her away and given her a writ of divorce, yet her treacherous sister Judah did not fear; but she went and was a harlot also."
When a man divorces his wife he causes her to deviate from God's perfect plan.