If you remove the battery from an iPhone 5s does the passwords erase too?

If you remove the battery from an iPhone 5s does the passwords erase too?

No, passwords and personal data are stored in the phone's memory, not the battery.

The iPhone's battery can't be removed (without tools)

To remove the battery you'll basically ruin the phone unless you know how to do that tech stuff. You have to like take the phone apart, there's no slip out battery. Also storage is stored on a memory chip or iCloud if you are using that option not the battery.