Here's why:
* Chat is a form of informal, conversational talk.
* Text is a form of written communication that can be considered informal writing.
Therefore, the analogy holds true: both pairs represent different ways of communicating, with one being a less formal version of the other.