Cause could be a bad connection in the circuitry. Loose, badly fitting or corroded connection are common causes. Before checking for these, I would suggest (you aren't going to like this) swapping the bulbs over, as I have known the occasional bulb to fail in this way. (Most cars only use one relay to power both bulbs, but there may well be seperate fuses for each.)