why not in the OP (illusion) scenario.
Because EGPWS is able to identify terrain with a high level of certainty. Whereas with illusions it is not possible (no certainty) for the human to determine if an individual is suffering (which one), or manage situations where both pilots suffer illusion simultaneously.