For your convenience, iMessages are backed up in iCloud and encrypted if you have enabled either iCloud Backup or Messages in iCloud. You can turn off both iCloud Backup and Messages in iCloud whenever you want. On iOS or iPadOS, go to Settings > [your name] > iCloud.