This particular law is not meant to discourage piracy. But actually, for an authoritarian state, it's better if everyone is both breaking the law and if they can easily track those people doing so. That means they can simply arrest anyone under the pretense of legitimate law enforcement.