a funny thing my car does lol

I was checking all of my lights last night as we are taking it on a small trip tomorrow and it was sat the better of 20 years. Anyway, I hit the brakes. The pass side was out. Changed the bulb, still out. Then I discovered that my signal was on, so I shut it off and they both worked. The key was in the off position.