Last time it happened to me was my annual club registration inspection... no high beam until I hit the switch a couple of times... the inspector says he sees it all the time... old cars not driven much, rarely at night, so dust/gunk gathers on the contacts.