Does an android phone unroot itself on factory reset?
Yes. you need to Root after Factory Reset

also, and if you want to unroot then remove busybox, remove files in /system/xbin folder, and in SuperSU application in Options, Choose Uninstall