Furthermore, killing, rape, and enslavement are all just words for extreme sin. If God could have a good reason for allowing me to hit my finger with a hammer, I don’t know why he couldn’t use extreme evil and abuse for good also.
In fact I know many terrible stories where people, while not justifying their abusers, see that they had valuable lessons and could help others in the midst of their pain.