It is part of the Multicast DNS (mDNS) protocol that resolves a device's hostname to be accessible via http://hostname, http://hostname.local or http://hostname.localdevice by pointing to its IP address within a small network that does not include a local name server.
Reference: https://en.wikipedia.org/wiki/Multicast_DNS