Bad Ruling
Those bad rulings that are let to be as is and to rise over people were let not because of anything. But because it is the very time Allah SWT wants to let the creations according to His given time for every single thing.
So if it is the time of goodness, the good things would come and rise easily.
But if it is the time of badness then the opposite come.
The main point is, amidts those things we should pray, ask, and do what we can according to His guidance through Sayyidina Rasulullah Muhammad SAW. So even when the night comes, good things can also be achieved even if they are in smaller scale.
So it is not about why and what if. It is about we pray, ask, and do the good things in small scale.
So understand, say your blessing and praise, and do the good things for Allah SWT obeying Sayyidina Rasulullah Muhammad SAW at all times. Aamiin.