Even if you have a perfect defense to avoid getting swallowed alive, there always has to be some idiots out there that aren't able to comprehend that.
As a porcupine, you're covered in spikes. You're basically the last thing some predator should want to eat whole. Then along comes some stupid suicidal snake. Now you're in it's stomach so you're both going to die.