While the poisonous spearlets are now directed largely against rival males, the trait could well have served among ancestral monotremes as the equivalent of a bee’s sting, to ward off the Bigfeet that ever threatened to crush them.
Source: wiktionary