Daniel 1:14 (ESV)

14 So he listened to them in this matter, and tested them for ten days.

Here we see that the LORD is the Almighty. He rules. He causes this chamberlain to be willing to help these four faithful young men. We see happening here what we read of in Proverbs 29:25, The fear of man lays a snare for someone, but he who trusts in the LORD is safe.