Why not move the queen
https://www.chess.com/lessons/opening-principles/protect-your-king

Chess.com's lectures are very good, but sometimes there will be some errors
I don't think this is a lecture from a grandmaster. Why not use Queen to checkmate? I really hope chess.com reads this and corrects it.
Bye!