We’ve been through this many times. Jan. 6th was a part of a brazen last ditch attempt to keep Trump in office by stopping the reading of the state-validated legitimate electoral votes, throwing the election to the House of Reps where Trump would have been declared President, despite his loosing the electoral vote (and of course the popular vote).
Trump tried but failed to pull off a nasty South American style auto golpe. Had Pence and a few other key players gone along with it, Trump might have succeeded.
Of course the idiots who attacked police and broke into the Capitol waving Trump, MAGA and Confederate Flags were in no way able to pull off a coup by themselves.