I wondered why we hadn't told him about it earlier.
主语是I,从句中的人称不变.主句wondered是过去时,从句didn't退一个时态变为hadn't.引导词why后面变为陈述语序.