They didn't "become" violent. It was an organized attempt to prevent the lawfully elected head of state from being certified and overthrow American democracy using violence.
Even the least violent among them committed a felony by entering the Capitol building. That someone else broke the window they entered doesn't make their entry any less illegal.