Most people are familiar with sharing files over a network using something like SMB or NFS. These protocols work well, but they're designed for transferring files, not for treating storage on another ...
You can transfer files between your iPhone and Mac with AirDrop, iCloud Drive, Google Drive, Finder, and more.