The files you generated on step 3 were never committed, so git didn't track them. Git never touches untracked files, that's why it left them on branch deletion. So it doesn't matter that "they were created on a new branch", since you didn't add or track them when you were on the branch.
However if you'd have committed them they would have been correctly deleted as soon as you'd have switched back to master
branch.