Also, you may wonder why you didn't know that McHenry was the designated Speaker Pro Tempore. It's because the list is kept secret by the clerk until a replacement is needed.
So when they voted to get rid of McCarthy, no one (except McCarthy) knew who the temporary successor would be.