They had the best minds working on it over a long period of time. In this case, without some luck (see below), who knows how long picking a new speaker would take...
https://theconservativetreehouse.com/blog/2023/10/25/president-trump-delivers-brief-remarks-on-new-house-speaker-mike-johnson/
Which is the simple truth.