TCP/IP was a thing when the C64 came out, but it was one of many competing networking standards, and it wasn't even the favorite to win.
I would say DECnet phase IV or IBM's SNA were the biggest contenders, along with X.25.
I think if Commodore had wanted to do a LAN, they probably would have built something proprietary similar to Acorn's Econet, which also ran on 6502 systems.
But, I think the primary focus of Commodore was on the home market, and most people would only buy one microcomputer, and if they had two sharing floppies was sufficient as a LAN. Acorn by contrast was more focused on the education market, where the value of networking was much more obvious, and schools were willing to pay for it.
It works surprisingly well, I've got it setup at the office.
Thanks to the forethought of the Commodore's engineers who envisioned the Commodore64 as the center of the smart-connected home, or sound studio, or industrial controller, lots of ultramodern hardware has been designed for it. Hardware that wasn't even science fiction when the C=64 came out. And all because C=64 is infinitely programmable, with his user and expansion ports. Unbelievably versatile computer, even by today's standards.
Other than that, it has its serial peripheral bus, used mostly for printers & disk drives. There were also device sharing & custom networking hubs which sit on that bus.
The ROMs supported a notion of general byte streams and could do simple redirection. It had that stream support for tape, keyboard, screen, RS232, and "device on the serial bus" built-in. Obviously, newer 3rd party hardware can support Wifi/Ethernet in various forms, and software can drive IP over existing links (like SLIP over RS232 adapters).
Oh, it also had a few hardware serial shift lines intended for the serial peripheral bus, but those never got used for that purpose (until the C128) and mostly sit unused.