I accidentally gave my cat an erection once.
This is surprisingly not an uncommon occurance.
Most cats get loveually stimulated from normal petting (which is loving weird), which is why they also seem to get really pissy for no reason after petting them for too long, as you've just gave them too much attention without "delivering" the goods. I wouldn't be surprised if it's happened before, and you haven't noticed.