Well now... Isn't that peculiar?
The only thing I can think of, is maybe the connectors in the headlight bucket are a bit weathered & now the connectors that you took apart & re-connected are making a better contact. It's a long shot, but I don't know why it would change at all.
Good luck with that one. I hate electrical problems.
J.