If a trader want something done about a pirate, they can pay a bounty hunter or merc to do it...
A BH probably shouldn't go out of their way to destroy pirates without payment, but if one is nearby it would make sense for them to engage 'just in case'.