This can happen because iCloud automatically offloads files that you haven't used recently and stores them in the cloud. Those items will have a cloud icon and a down arrow next to the file name. This is an iPadOS “feature” so we can't get around it. The solution is to move the folder to the On My iPad location so it is always available.