Our applications always manipulate and communicate using data; an encoding mechanism is needed to guarantee that both systems can read and write that data in a compatible and optimal way.
That data needs to travel on a channel using a protocol; the web we know is mostly text-based, but, for certain use cases, we can use binary encoding algorithms to guarantee compatibility, schema evolution, and performance.