[Surat al Baqarah: 2:216]
Never doubt that there is wisdom to every one of Allah’s decrees. There always is - it’s just sometimes that we humans with our limited comprehension are not always able to perceive it. Have faith that Allah knows what is best for you.