You can create sockets and fifos anywhere. Device nodes are the only special ones which are generally confined to specific locations.
(udev assumes they live under /dev. I'm not sure if /dev is hardcoded in udev or configurable. But you don't have to use udev anyway, you can create device nodes manually.)
So there's actually a good reason for being able to create device nodes outside /dev.