God had granted Daniel favor and compassion from the chief official,
Daniel 1:9 In-Context
The chief official gave them new names: to Daniel, the name Belteshazzar; to Hananiah, Shadrach; to Mishael, Meshach; and to Azariah, Abednego.
But Daniel resolved not to defile himself with the royal food and wine, and he asked the chief official for permission not to defile himself this way.
Now God had caused the official to show favor and compassion to Daniel,
but the official told Daniel, “I am afraid of my lord the king, who has assigned your food and drink. Why should he see you looking worse than the other young men your age? The king would then have my head because of you.”
Daniel then said to the guard whom the chief official had appointed over Daniel, Hananiah, Mishael and Azariah,