God used this question to emphasize his claim that he should have compassion on Nineveh. Alternate translation: "I certainly should have compassion for Nineveh, that important city ... animals." (See: [[rc://en/ta/man/jit/figs-rquestion]])
The author is pointing out the depth of Nineveh's repentance to the extent that Yahweh takes note of the animals' participation in the act of repentance. (See: [[rc://en/ta/man/jit/writing-background]])