This is probably a rather old bug. That code hasn't changed in a long time (since 2006).
Although it will not happen with the next release of WeBWorK. That code has been entirely removed. As of the next release, users will no longer be created in the admin course when a course is created, and of course, that means users will not be dropped when a course is deleted. There is no reason for those users.