There are a lot of different reasons why dogs sneeze when they are playing or excited.
This causes the dog to wrinkle their highly sensitive nose, which can cause a tickle that the body interprets as a signal to sneeze.
When a dog sneezes, it's usually a sign that the dog is healthy, and the body is doing its job.