Anarchism isn’t the absence of rules but the absence of authority. Some anarchist ideas even replace the centralized authority figure with rules that apply to everyone and of cause free association so you are not forced to follow them and can move on instead