Heat stress is a classic cause of herms. Male flowers can be so tiny and insidious that you probably didn't even notice them. They will form in the bud among the calyxes too. A seed or two isn't the end of the world anyway. Label it and stash it away for emergency backup if yo ureally liked the plant, or toss it, or give it to your hamster.