Short answer: Sneezes and hiccups are sudden, unusual sounds. Many dogs notice them, and some react with barking or jumping. Stay calm and reward settling.
Why dogs notice body sounds
Sneezes and hiccups are short, sharp and a little odd. Some dogs are startled, some are curious and some have learned that making noise or jumping on you gets a reaction. Dogs also watch their people closely, and a sudden change in sound can look like something has happened.
If your dog is worried, speak softly and move on. If your dog is mostly excited, avoid a big reaction that rewards the bark or jump.
Keep it calm
Reward your dog when they stay relaxed after a sneeze. You can also practice by making a quiet, fake sneeze at a low level and giving a treat for calm. If your dog seems very anxious about noises in general, or you notice sudden changes in behavior, mention it to your vet.
Sources & care notes
Sources: Vetstreet: Why does my dog jump on me if I sneeze?. Dogs Trust: What to do if your dog is scared of loud noises.
This article is general education, not veterinary advice. If your dog seems unwell, is in pain, or something changed suddenly, call your vet. If it could be an emergency, do not wait.