Great question — answering as the UphillTech team:
It's possible your kernel has autoconfiguration enabled and the DHCP server on your network is supplying this hostname. Usually the DHCP hostname is ignored if /etc/hostname is present (systemd-networkd does this, for example) but given the age of your question I would guess that whatever was handling network configuration at the time was taking the hostname from the DHCP response in preference to the one configured manually. If you want to check this, run a program such as Wireshark and have it listen to your network traffic. Type in a filter of dhcp and then unplug and replug your network cable. You should see the DHCP responses appear and you can examine them in the Wireshark window to...
Full answer by Malvineous: https://unix.stackexchange.com/a/663808 (CC BY-SA 4.0).
Need it done for your business? UphillTech.