The Capitol, Mall, Ellipse and White House do not fall under the DC mayor's jurisdiction. That is under Federal authority.
There would have been no problems if Trump had accepted the results of the election, like the previous 44 losers had, hadn't repeatedly spread a big lie, hadn't asked his followers to come to DC and be wild and hadn't told his followers that they were going to the Capitol.