Because your not talking to the disk directly, your telling the other system to write X or read Y from the disk.
Http doesn't care about the OS, Neither does SMB, or NFS, or whatever your are using to setup the files share, they just care that the other system can speak the same thing.