Kíli carries a bow as his primary weapon but also a short dwarf sword.Avengers Grimm: Red, as the Badass Normal of the cast, sports both a bow and a sword in her quest to kill The Wolf.In Endgame, he becomes Ronin and uses a sword along with his usual bow and arrows. Avengers: Endgame: Everyone knows Hawkeye is the greatest Marksman to have ever lived with his bow and arrow, but ever since his introduction we've been shown he's also capable of using other weapons, such as guns, and in Civil War, collapsable batons and a staff.
Even the toughest swordsman or most accurate archer will find their weapons useless when fighting at the wrong range. This is quite common in fiction for a number of reasons: A character who wields both a bow and sword (this includes crossbows).