And how would that have happened, exactly? Is an ebook fairy involved?

Well in your case, it happened because you put them on your website for free and someone bundled them up with thousands of other scifi books they'd acquired from somewhere and then put them all on a pirate site.