It is named after the many scenes in the Harry Potter series when Harry and Ron forget that their friend Hermione is actually a girl.
<Dave elbows Steve hard in the ribs>
Steve: er.. Hi Teresa! Um, what do you think of Jessica's... er...
Dave: Dude, Hermione Moment!