This happens if your Apple TV is on the LAN and the WLAN at the same time and they are connected either because they are one network or you use avahi-bridge between them. It thinks the other interface is someone else using the same name so it adds these numbers to make a unique name.