Because that is the definition of putting away.
Deuteronomy 24:1 KJV
When a man hath taken a wife, and married her, and it come to pass that she find no favour in his eyes, because he hath found some uncleanness in her: then let him write her a bill of divorcement, and give it in her hand...