Whenever an ant is killed, IIRC, it secretes a pheromone that attracts other ants nearby to it's death site. Might be why the ants kept 'sniffing' the dead ants, perhaps? Also, the only way to kill ants without them doing this is to put the ant down the drain.
However, I could be way wrong, this is just something I think I remember.