He did it______gratitude for everything she had done for him.
【正确答案】 B
【答案解析】句意:他那样做是出于感激她为他所做的一切。out of gratitude是固定词组,表示“出于感激”。故选D。