You can have legitimate use cases where it's a core functionality of the application to store it, so the user obviously knows it's being collected and agrees by using it.
Storage accessible only to the user is usually not what we mean when we say data collection.
Storage accessible only to the user is usually not what we mean when we say data collection.