I think the idea is that if you don't like where the majority is going, within a particular community or group, you move to a different group, or found one yourself, so you will be part of a group which is doing what you want.
It is however anarchy (the term), which is much older, and used to convey precisely lack of order and mob rule.
No, it's ochlocracy; there's a reason the same people who named anarchy made a separate word for it.
Anarchy is lack of rule - not the same as anarchism (the ideology and ideal for self-government), as several oppressors can and are still at play in a state of anarchy, or everybody might be fighting each other and there can be constant power shifts...
Ancient Greeks used the term with this meaning, not to describe some anarchist utopia.
So ochlocracy is like the people turning into a mob carrying pitchforks. They are the law...
Anarchy - in the ancient Greek sense - is like there's no state and no all-encompassing rule of law to turn to. It's the "law of the jungle".
Arguably, it's one of the risks of democracy that motivates anarchists. (Now, there's a case to be made that anarchy also risks devolving into mob rule by a different path than non-anarchic democracy does, but they still aren’t the same thing.)