Not all countries should be in the flagging business
Flags must meet 21st-century international norms on accident investigation and seafarer welfare, and those that don’t should shape up or (quite literally) ship out
The right of sovereign states to set up a shipping register goes back over a century to the Treaty of Versailles. But just because a government can do something doesn’t mean it should