"kitten does not get poisoned"
Ant traps are (these days) designed so that pets can't get at the substance.
Also, the amount of poison used to kill ants is microscopic compared to how much it takes to kill a pet or small child. Similar to the difference in the amount of poison it would take to kill your cat vs a blue whale. Most sprays and baits are not harmful to pets for this reason.