The history of the last thirty years in merchant shipping is one of steadily reducing manpower, automating navigation and other systems, replacing highly qualified bridge crews with the cheapest labour available and of generally cutting payroll costs to the bone.
Modern freighters have plenty of power and are much tougher than modern warships, which are built lightly for manoeuvrability. They can easily be equipped with all manner of high tech weaponry.
However- That comes at cost, as does the additional manpower and the training to use it. Believe me, giving a bunch of poorly paid Phillipino sailors RPGs or Stinger missiles is not a smart move. These guys have agendas at home.
Then there's the small problem that a lot of said weaponry is going to accidentally fall overboard when the ship is being attacked at night by something that turns out to be a whale- and will subsequently float to the surface in interesting markets all over the world.
There are still mutineers at sea as well as pirates. What stops an armed crew taking over their own ship and selling the cargo in some backwater port?
Much, much safer for the shippers to levy a tax on goods and use it to pay actual soldiers to stay on board in danger areas. Hire some Gurkhas and form a marine security outfit. Would you try to hijack a tanker with a bunch of grinning Nepalis polishing their kukris on the handrail?