Why protocol is important in data communication?

A protocol is a set of rules describing some behavior. In order to communicate in a common manner, the sender and receiver have to agree on the "language" of communication.

A protocol states what those rules are, and because they are a standard, everyone agrees and knows what to expect.