I don't doubt that the intent is not specifically to harass people who are wearing a mask for health reasons and just going about their normal routine. But only because I'm certain the intent is to use it as an excuse to harass and arrest peaceful protestors even when they aren't breaking any laws. Because speech should only be free when they agree with it.
But even if the intent isn't to go after people that choose to value human life, they are leaving that door open and they fucking know it. All they have to do is make the law a modifier that can be tacked on to existing felony charges, but can't be charged separately. But they aren't doing that, or anything else to prevent the law from being used to target people for not belligerently opposing anything that might benefit public health.