In this context, "guns" probably means cannon, not small arms like rifles or pistols.
Ceremonial artillery doesn't fire projectiles, just propellant charges, so it seems implausible that it could be heard at those distances.
> "Guns fired at the funeral of Queen Victoria in London in 1901 were heard in Scotland"