God is sovereign. He is in control of every nations. He orchestrates all the world events to go according to His plan. He uses people to do his will, even those that don’t believe in Him and are wicked.
The future he reveals to those who seek it, just as Daniel was trying to understand the situation. God revealed i to him for His glory, that people like you and me may know that He declares the beginning and the end. He knows everything. God is sovereign.