TCAS and GPWS need to know if the aircraft is going up or down but not its attitude and the stall warning system measures angle of attack.