My 17 yr old corn snake has laid a clutch of eggs the last two years. I've raised her from a hatchling and she has never come in contact with another corn snake. She started laying after I adopted a male corn, again, they were never in contact, just both are kept in my snake room. They were infertile eggs not partho (where the mother self-fertilizes).
Our leachie gecko has also been laying infertile eggs each year for the past 4 years (she's the only gecko we own and kept in the bedroom).
So while it can happen, it is not a common occurance.