This is a law in a few different countries. It is not often heard of in the United States.
In some of those countries just a threat is enough to be charged with affray. As long as the person being threatened has a reasonable belief that they are in danger.
Every country has laws that try to curb the amount of violence on the streets. A person should be able to have a reasonable expectation of safety when out in public.