Some Flatpak apps don’t have the proper permissions or they can be quite restrictive especially when it cames to file access.
For example; it’s not possible to upload files using Discord from the user home (except a few specified folders). This could be solved with a XDG portal, but most apps don’t bother implementing that.