There are a lot of things that God doesn't do them our way, and by so doing that He gets us to search for Him more and more. When He shows up to us in His own style confusing our human wisdom and expectations we get to build trust in Him and fellowship.
There is a reason why some of your prayers are not answered because your patience and waiting on God builds the muscles of your faith. His ways are not our ways. He is interested in building you and getting you to know Him more.
Try not to understand every detail but choose to believe God wholeheartedly.
HE KNOWS THE REASON WHY......