I believe it has to do with their genetic responsibilities. Males are programmed to just release their pollen, they don't care where that pollen goes. Female plants on the other hand have the responsibility of getting pollinated so that they can create seeds, and they'll do everything they can to do so! Sometimes that means turning into a hermaphrodite.