Related: The OSI Networking Model defines 7 layers (or stacks) to clearly define and separate the duties of each level of the networking. Having clear levels makes troubleshooting and debugging layers.
In practice there's only 4 or 5 layers depending on who you ask.