The transponder has a squat switch signal that says we have weight on the wheels, and we are on the ground. When that signal is active, the transponder switches to transmitting "I am on the ground" and it also changes the altitude to 0 feet.
I've watched my (competitor) receiver for a few years, and the aircraft always report barometric altitude until they are on the ground, then they transmit 0 feet. I admit this may be a program triggered thing. That is, change altitude to 0 feet when you detect the squat switch active signal (it is transmitted on several downlink formats these receivers decode).
The competitor receiver also sends out an onground boolean true on the TCP port 30003 for the aircraft. I don't know if RB uses that boolean.
You are supposed to get TCAS alerts anytime you are flying.