It's quite likely to do with the more recent devlopement of the gun as an effective weapon. When they were first introduced, guns were cumbersome, noisy, smoky and the kill range was frankly shocking. The only way to reliably kill a target was to have a platoon fire en masse. Swords have had centuries more time to develop. Firearms as a whole are only just beginnning to enter into elegance which incorporates functionality, which was the base practise of firearm manufacture. Handguns in particular, such as the Browning, Baretta and Sig Sauer models, are a lot more elegant than their earlier counterparts, possibly because they're designed to sit more comfortably with the users' grip.
Swords can be employed to lethal effect by any amateur, simply operating under the action of using a large metal club. You are much less likely to survive a sword wound than you are a gunshot, as the heat of the passing projectile can cauterize the wound. Quite apart from that, a sword wound will invariably be larger, and can then be twisted or wrenched inside the body, causing further damage. True, guns are designed from the standpoint that they should be easy to use for the inexperienced, but to be used properly and consistently, they require as much training as a competent swordsman.
Swords can be employed to lethal effect by any amateur, simply operating under the action of using a large metal club. You are much less likely to survive a sword wound than you are a gunshot, as the heat of the passing projectile can cauterize the wound. Quite apart from that, a sword wound will invariably be larger, and can then be twisted or wrenched inside the body, causing further damage. True, guns are designed from the standpoint that they should be easy to use for the inexperienced, but to be used properly and consistently, they require as much training as a competent swordsman.