Apple strongly protects data stored on an iPhone, iPad, iPod touch, Apple Watch, and macOS (with FileVault enabled or a T2 Security Chip, or both). However, there’s an exception for mobile devices that can be useful in extremis, such as if you’ve forgotten your passcode (say, for an older device), you’re helping someone who has forgotten it (possibly due to dementia or an accident), or you need to recover data that you’ve inherited or are working on on behalf of a family.
iOS and iPadOS backups aren’t nearly as secure as the data stored on devices. This means you may be able to retrieve a backup with all the data—even including stored passwords and other personal information—to another device under your control.