...but the $64,000 question would then be "why didn't he?"
I can come up with several possible alternatives:
1) First, of course, that he never planned to do it in the first place.
2) That he was, for the sake of appearance, counting on the groups of resistance activists who had organized to fight a coup to be out in the streets as promised, and that the clashes between them would give him his excuse to declare a national emergency because of "violent disorder from both sides." I was reading a few days ago about the behind-the-scenes efforts to fight an attempt to overturn the election, and how the organizers worked with progressive groups to tamp down any attempts of a "street presence" among such organizations on 1/6, with everyone agreeing to put off any protests unless such attempts appeared to be succeeding. This, in itself, may have foiled Trump's plans.
3) That he was actually counting on something more brazen: that the insurrectionists would manage to capture and/or kill enough Democratic Congresspersons to give Republicans a majority in both houses; whereupon the new "leadership" could proceed to reject the Electoral College vote and pick the president themselves before states could appoint replacements. By the time it became clear that the mob, while successfully breaking into the Capitol, wasn't going to be able to get to the Representatives and Senators, it was too late for a convincing case to declare martial law.
4) The one option that few people seem to be considering: that, maybe, Trump did decide to declare martial law, notified the Joint Chiefs to send the troops in, and was told by them they would refuse to obey such an order. I wouldn't be surprised to learn that there was more going on at the White House than just Trump enjoying television coverage of the attack, but no one in Trump's inner circle is ever going to admit if such a scenario played out, and the military brass probably considers it a point of honor to never reveal such a thing.
Of course, we may never know, but you have to think there was some payoff in mind when they were planning and organizing this insurrection, and it wasn't just to have a large mob vandalize the Capitol building and then go home.