Photos are synced in the background via location change events (and thus requiring Location permission). It can be a bit unreliable from time to time, but generally works. Contacts and calendars are synced in the background via iOS' CalDav/CardDav integration.
Nextcloud app also exposed itself as file provider in Files.app, so it's possible to use it in place of iCloud Drive for apps that use the appropriate API. (Unfortunately most apps use CloudKit, which sync over iCloud.)