It also says right there in deuteronomy not to prostitute your daughter. Good thing it told them, how else would they have known?
Yeah, I believe Deuteronomy also tells them to have a woman marry her rapist if she was a virgin when the act took place. It’s a product of a very ancient time.