Once upon a time, in days long past, before medicines that could heal people had been discovered, illnesses mostly ended in death because those who fell ill could not be treated. Sneezing—then as now—was seen as a symptom of illness. So that people who sneezed would not fall ill and die, they would say to them "Bless you!"
Please, you also say "Bless you" to anyone who sneezes. Better safe than sorry!