The story
Before the days of instant pregnancy tests, a woman's sample was injected into a rabbit. There were several varieties of tests; one allegedly would kill the rabbit if the pregnancy hormone was present in the sample (most accounts indicate the rabbit was killed and dissected either way.)
Etymology from Wiktionary, CC BY-SA 4.0.