Normally I think that would be pretty odd behavior too -- clicking a tab isn't normally expected to move the focus away from wherever it was before.  But in this case, there's really no other place for focus to go in the dialog so it almost seems like a moot point.  That is, focus should be in the text field before clicking on the tab, so having it focused after clicking the tab too doesn't feel to the user like focus has moved.