This canary term was derrived from the fact that real life coal miners would often bring a canary with them in the mines, since canaries react strongly to toxic gases, and if the coal miner would see the canary in distress, they would know its their time to leave.