If you reset your PC by selecting the “Remove everything” option, all your data, along with the user accounts, is deleted. In this case, you have to set up your PC from scratch. On the other hand, if ...
This process is called a clean install, which is ironic as there's nothing particularly clean about it: Microsoft has enshittified Windows Setup.