Could be the system working properly. TCAS, as far as I know, only receives a “dumb” radalt input and won’t be looking ahead at terrain. EGPWS, on the other hand, is predictive. Could be the TCAS was obeying its rules correctly based on radalt info from directly below the aircraft while the EGPWS was also working correctly and looking ahead at rising terrain.
Interesting incident.