Moths (and other insects) evolved to use transverse orientation to fly level at night by using distant bodies of light (stars, moon), essentially trying to fly perpendicular to light above.
Sources of light which are physically close disrupt this instinct.