I think that feature relies in the concept of a device file, which is a direct reflection of the UNIX trait of everything being a file.
https://en.wikipedia.org/wiki/Device_file