There are no holes or threads, they are both solid and are around 10mm diameter at the widest point.
I'm guessing the flats might be to remove them from a push fit hole in something - perhaps a live centre / drive centre pair but it's only a guess! It seems odd to me that if the two are opposite ends of some sort of mandrel that they aren't matched.