More precisely — of files, settings and messages. And that's where the confusion begins, the kind that makes people lose data even when they're sure everything is under control.
Many people think: if photos show up in iCloud, then they're in the backup too. But these are two different mechanisms. iCloud can "sync" — when changes are instantly pulled onto all devices. A backup is a snapshot of what's stored separately on the iPhone and doesn't automatically flow anywhere. One doesn't replace the other, and anything already synced doesn't go into the backup.
What this means in practice. If "iCloud Photos" is on, your pictures live in the cloud as a separate stream — they aren't duplicated in the daily backup. Same with messages when "Messages in iCloud" sync is active. What does go into the backup is the home screen layout, device settings, data from apps that can't sync, and even ringtones.
So "everything's in iCloud" is not yet a guarantee that the iPhone can be wiped or moved to a new one painlessly. And the most treacherous moment: you delete a photo from the phone, it disappears from the cloud, and there's nowhere to restore it from afterwards. Unless you checked in advance that the upload had finished and the copy really was up to date.
There's a simple action that saves a lot of stress: open iCloud settings and look at the backup status. Not the number of gigabytes, not the little "on" circle, but the date of the last successful backup. If it's still back in last month, then the device ran out of space, the battery didn't last the night, or Wi-Fi switches off overnight. The system doesn't complain — it just stops copying.
A separate story is when someone decides not to repair the phone but to replace it. Our repair centre sees the same scene over and over: the person is calm because "the photos are in iCloud", and after the transfer it turns out the home screen layout is gone, the Wi-Fi passwords didn't come across, and the messengers had to be set up from scratch. All of that lived only in the backup, which was last made six months ago. iCloud is not a chest into which the phone tips out all its contents once a day. It's a clever system in which some data travels by sync and some by backup. Keeping that difference in mind and checking the date of the last copy is a habit that will one day save you more than one evening of restoring.