If looting fails either because of cooldown or there are items on your cursor, the client is sent an end loot packet- the client releases the corpse but no one else can loot. This simply resets BeingLootedBy in this instance.