Gunshots are loud and quick, so the simile is emphasizing the loudness and quickness of the heartbeat.
Consider the statement "My heart thumps loudly and quickly". Based on this "My heart thumps like a muted series of gunshots." a true statement? Yes, no, or I don't know?