Or you shake so violently that the receptors in the eyes send a signal to the nerves. Receptors react to inadequate stimuli too if the stimuli are strong enough. And the brain receives the signal "the EYE has noticed something" and makes it into "there was something to be SEEN" even if it was in reality pressure or a very loud sound wave (bang) or something. Unfortunately, all receptors are constructed in such a way that it is difficult for the experimentator to give them a strong enough inadequate stimulus on purpose without doing any harm...
But really I think synaesthesia is more probable. I have it the other way round too: when I see a sudden flash I hear a crackling sound. In some cases there might have really been one, of course, but in the case of lighnting I am well aware that its real sound is the thunder which comes later.