That is an excellent question, and one I've wondered about. The females don't fly, only the males. None of the sites I've visited mention just how they get indoors, only how to deal with them. They're pretty easy to get rid of (alcohol and a cotton swab) if you catch them early.