This was an organized attempt to assault a joint-session of the newly elected congress discharging their duty to certify the election results for the Executive branch of government.
Had the rioters reached the house or senate floor the US could have found itself without a legislative branch to legitimize the next president.