You do not have problems with the App. You have problems with Apples storage security surrounding Apps.
Short version: Originally iOS Apps could only access their “own memory” (memory, that could only be accessed, modified or even seen by the App).
Today, in simplified view, each App has “private memory” (ONLY accessible by the map), locally - on device - shared folder (memory, you can access via Files), Which is created by the App (do NOT remove) and iCluod folders (created by the App for specific sharing - do NOT delete). The latter is typically used for exchanging files between several devices. One example - among many - is Affinity Photos, where the iCloud folders is intended to be shared by the App - maybe between you iPad and Mac, but also possible to your Affinity Photo on a Windows 10 machine.
The last few iCloud versions allowed user created folders, and Files got other possibilities (not always handled reliably). If you view the folder types this way, you’ll have less problems:
Private memory
Not visible outside the App (typically not by the user either). Purely internal use.
Device only memory
Data folder that can be accessed only on the physical device (do NOT delete). Not everything should be assumed to be freely accessible for modification or deletion (some apps may store bookkeeping info on content)
iCloud memory
Data sharing folder across devices with access to iCloud (do NOT delete). It is not necessarily a given, that all available content should be modified (some is app bookkeeping of content).
General memory
User created folders in iCloud, on network shares, Google folders, OneNote folders etc. You can in principle do anything here, IF the creator has allowed you full access (some folders may be readonly - just to name an example). Whether it is intelligent to delete or modify anything here depends…. on a lot of conditions
This weird and thoroughly complicated use of memory in iOS and iPad is a reflection of the step by step evolution of an app only private memory system over time. In many views, iOS needs a thorough cleanup in the file system. If that will ever happen, is anyone guess. The current design is a real mess.
Hope this will help.