This is a mix of being a bug and not - what’s happening here is that the Mouse component is listening for mouse clicks, so when you click on the Textbox (to give it focus), the click is picked up by the Mouse component rather than the Textbox. If you replace the Mouse component with some other method of ending the routine, as you have in the previous Routine, it should work!
However, this is also a bug as an editable textbox should have focus by default, without needing to be clicked on. I think what’s happening is that focus is remaining on the (no longer drawn) textbox from the previous Routine, similar to how only one Textbox would start off with focus if you had two on screen at the same time. Even though it’s not being drawn, the first Textbox still exists, so PsychoPy is seeing it as the main one. I’ll add a bug fix to bring control to a textbox if it is the only one on screen!