Factory reset left root intact?
Root things (su, busybox and Superuser.apk) are installed in /system, which is usually on a special partition. This partition is usually mounted as read-only. (Remember mount command, that is neccesary to allow writing there...) It is likely that this partition is not affected by master reset.