The simple answer is: It's what they did.If they have swords, why are they wacking people with they're guns?
A sharpened musket stock, often with a metal edge, was a fearsome weapon and superior in many ways to the cheap and nasty munitions quality sword that was more often used to chop wood and perform other domestic tasks.
Cheers