Sallams. I just want to make sure why things like this happen? I know there's a reason for everything.
Anyways I have a young family relative under 10 who's been molested and its traumatic for her. How would I consold her and such

What should she do and think about?
Brother if you just would take a little bit of time to contemplate what Islam says and why you would already have known the answer to it in'sha'Allah.
Rape, just like murder, or theft or whatever, we know as Muslims that this life is ALL a test. Now you have those people who have no patience or interest in to searching for answers they will say "but i did not ask to be tested". OOH NO, YOU DID ASK TO BE TESTED!!
"
Indeed, we offered the Trust to the heavens and the earth and the mountains, and they declined to bear it and feared it; but man [undertook to] bear it. Indeed, he was unjust and ignorant." Qur'an 33:72
Some people would after rape curse at Allah and say what has Allah given me or let me witness this and that. The Day of Judgement is something so serious that on that day people will cry blood. The person that has gone through hardship including rape will be used for wiping out sins, purifying one and even elevating a person if they show patience. No individual gets a test or hardship more than what the soul can handle.
When somebody even has trauma's it is Allah who heals. I can speak out of experience that although when i sometimes think about it is logical that i feel hurt about my own past and what hardship i had go through, but i say ALHAMDULILLAH that i went through it. I wouldn't want it otherwise. Also based on logic, rationality and reason this is true. What do i mean? Just look at veterans of war. Many resort to drugs and alcohol to try to forget what they have seen in war. The horrible images that haunt them until they die. They are never the same anymore. Many these days just commit suicide afterwards. However war veterans with PTSD cannot heal such gruesome images, no psychiatrist can help them. This is because the healing of ones fitrah is ONLY threw the means of worship to Allah.
"
And I did not create the jinn and mankind except to worship Me." Qur'an 51:56
When somebody heads the path of iblies, the fitrah(human nature) is being
SLOWLY poisoned by money, greed, desires, envy etc. Rich people like hollywood stars when they reach big money is rather being catapulted towards distress, while the rest of the population is taking small steps. War veterans also are catapulted towards distress, because such horrible things are shown to them/they witness it and there is nothing that keeps them calm and heals them.
=======Hadith=====
"that the Messenger of Allah (ﷺ) said: "Do you think that if there was a river by the gate of one of you, and he bathed in it five times each day that there would remain any filth on him?" They said: "No filth would stay on him." He said: "That is the parable of the five prayers, Allah wipes out the sins with them."
Source used:
https://sunnah.com/urn/631010
================
We NEED the prayer..why do you think that although there are Christians (no offense) that say i am saved because i believe in Jesus Christ as my savior, yet they are empty inside. The peaceful heart and calm heart comes from Islamic prayer not because you just believe in Allah. What Christians do is dua, not prayer. So they ask or thank Allah but they are not worshiping Him. Prayer is fulfillment of what you as a human being were meant for..(worship) just like completing the deen (marriage). Even doing the prayer is not the same, doing the prayer with full concentration is when you taste the prayer. That is what you want to reach and whatever you have witnessed or will witness you are calm.
When the prayer was given to Rasullah(saws) it was also in such a time he was stricken with a lot of sadness. His wife (Khadija (ra) ) Allah took her soul and his uncle (Abu Talib) his soul was also taken.
These things are things one need to take the time to seriously think about it, to understand them. Stop fooling around with useless things (ie tv shows, music, video games, movies, social media etc..) and contemplate about Islam and in'sha'Allah you will get the understanding of A LOT of things from Allah Himself. I would advice you to every day just an hour do NOTHING. Go somewhere quite BY YOURSELF and just ponder.