If you had faced adversity during your day, this would stimulate a dream about being beaten up. If you had memories of getting beaten or abused, this could replay as dreams, when your brain gets stimulated by something.
If you were defeated in a competition, project or any other form of rivalry, You might dream of being beaten up.