In the Old Testament we read quite the strange story. Sometimes I wonder what the significance of a story like the Levite and the Concubine is, and why it's even in the Bible in the first place. This link sums up the meaning behind this passage pretty well:
"This grotesque series of events concludes with the fitting words of verse 25: “In those days Israel had no king; everyone did as they saw fit.” Readers reeling from the immoral activities of these closing chapters of Judges can take some comfort in the fact that Scripture clearly condemned these activities. This dark period of Israel’s history would soon lead to the demand for an Israelite king, an act that would help to some degree yet would also reveal the need for a perfect King and Messiah—Jesus Christ, who would come later in the New Testament"
Sometimes in the moment our situations are tough and confusing and we don't know why God put it in His plan for us to go through them. But if we take a moment to step back and realize what it could look like in the big picture, we could be nearing something so much greater. This story in the Bible is a great representation of how much we needed Jesus to come down to the Earth to show us what it looks like to be a perfect King.