The correct inference is: It had to please the king.
As the court painter for Philip IV, Velázquez's work was likely focused on meeting the tastes and preferences of the king, which would have included creating flattering portraits and other works that reflected the royal court's values and aesthetics.