Either the sound was added later or those were exceptionally well trained animals. Probably both.
My brother did civil war reenactment and there was a lot of black powder exploding and they managed to train the horses to tolerate it. But it definitely took training!
Yep, that's quite a smack:
https://www.youtube.com/watch?v=u5l3ncEcRKs