With your permission, some Google and third-party apps can access your messages to provide companion experiences like when you restore messages to a new phone or app, or when you send message notifications to your home device, smartwatch, or car.
When you receive end-to-end encrypted messages, they’re also included in Android backup and accessible to apps you’ve granted SMS or notifications permissions to. You can manage and update which apps can access your messages.